We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36dc6e8 commit d7e2720Copy full SHA for d7e2720
1 file changed
src/ReactSelectize.js
@@ -147,9 +147,23 @@
147
return this$.props.onFocus(e);
148
});
149
}, ref$.onBlur = function(e){
150
+ /*
151
if (this$.refs.dropdownMenu && document.activeElement === findDOMNode(this$.refs.dropdownMenu)) {
152
return;
153
}
154
+ */
155
+
156
+ dropdownDOMNode = findDOMNode(this$.refs.dropdownMenu);
157
158
+ if (dropdownDOMNode) {
159
+ const dropDownClassName = dropdownDOMNode.classList[0];
160
+ if (document.activeElement.isEqualNode(dropdownDOMNode)) {
161
+ return;
162
+ } else if (!!document.querySelector(`.${dropDownClassName}:hover`)) {
163
+ return this$.refs.search.focus();
164
+ }
165
166
167
return this$.closeDropdown(function(){
168
return this$.props.onBlur(e);
169
0 commit comments