Update selectwoo

This commit is contained in:
Mike Jolley 2019-04-16 13:14:44 +01:00
parent 2e96f4ab3f
commit c65d5a877c
4 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/*!
* SelectWoo 1.0.1
* SelectWoo 1.0.5
* https://github.com/woocommerce/selectWoo
*
* Released under the MIT license
@ -1924,7 +1924,7 @@ S2.define('select2/selection/search',[
var $search = $(
'<li class="select2-search select2-search--inline">' +
'<input class="select2-search__field" type="text" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' autocomplete="off" autocorrect="off" autocapitalize="none"' +
' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
'</li>'
);
@ -3992,7 +3992,7 @@ S2.define('select2/dropdown/search',[
var $search = $(
'<span class="select2-search select2-search--dropdown">' +
'<input class="select2-search__field" type="text" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' autocomplete="off" autocorrect="off" autocapitalize="none"' +
' spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" />' +
'</span>'
);
@ -4047,7 +4047,7 @@ S2.define('select2/dropdown/search',[
});
container.on('focus', function () {
if (container.isOpen()) {
if (!container.isOpen()) {
self.$search.focus();
}
});

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*!
* SelectWoo 1.0.1
* SelectWoo 1.0.5
* https://github.com/woocommerce/selectWoo
*
* Released under the MIT license
@ -1924,7 +1924,7 @@ S2.define('select2/selection/search',[
var $search = $(
'<li class="select2-search select2-search--inline">' +
'<input class="select2-search__field" type="text" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' autocomplete="off" autocorrect="off" autocapitalize="none"' +
' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
'</li>'
);
@ -3992,7 +3992,7 @@ S2.define('select2/dropdown/search',[
var $search = $(
'<span class="select2-search select2-search--dropdown">' +
'<input class="select2-search__field" type="text" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' autocomplete="off" autocorrect="off" autocapitalize="none"' +
' spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" />' +
'</span>'
);
@ -4047,7 +4047,7 @@ S2.define('select2/dropdown/search',[
});
container.on('focus', function () {
if (container.isOpen()) {
if (!container.isOpen()) {
self.$search.focus();
}
});

File diff suppressed because one or more lines are too long