I did:
The close method calls the deprecated $.fn.blur() shorthand:
if (self.isBlurring) {
self.$control_input.blur(); // close keyboard on iOS
}
This triggers a warning when running jQuery Migrate.
Steps to reproduce:
- Click selectize element to open the items dropdown.
- Click an item to select it.
- Click out of the selectize control
Expected result: No deprecation warning
Actual result: Deprecation warning
Further Details:
I think #1625 referenced this, but the PR which closed that issue (#1624) only actually addressed $.fn.trim(), not $.fn.blur().
I wonder if this could be as simple as updating as follows, but I'm not confident in it:
if (self.isBlurring) {
- self.$control_input.blur(); // close keyboard on iOS
+ self.$control_input[0].blur(); // close keyboard on iOS
}
Happy to create a PR if it is thought that this is the way to go! :-)
I did:
(or gave a link to a demo on the Selectize docs)
like below
The
closemethod calls the deprecated$.fn.blur()shorthand:This triggers a warning when running jQuery Migrate.
Steps to reproduce:
Expected result: No deprecation warning
Actual result: Deprecation warning
Further Details:
I think #1625 referenced this, but the PR which closed that issue (#1624) only actually addressed
$.fn.trim(), not$.fn.blur().I wonder if this could be as simple as updating as follows, but I'm not confident in it:
if (self.isBlurring) { - self.$control_input.blur(); // close keyboard on iOS + self.$control_input[0].blur(); // close keyboard on iOS }Happy to create a PR if it is thought that this is the way to go! :-)