We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4916166 + de45a68 commit c197218Copy full SHA for c197218
src/components/Select2.js
@@ -86,6 +86,10 @@ export default class Select2 extends Component {
86
if (this.el) { return; }
87
const { defaultValue, value, options } = this.props;
88
89
+ if (typeof options.dropdownParent === 'string') {
90
+ options.dropdownParent = $(options.dropdownParent);
91
+ }
92
+
93
this.el = $(ReactDOM.findDOMNode(this));
94
this.el.select2(options);
95
0 commit comments