@algolia/autocomplete-js 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -131,17 +131,19 @@ export function createAutocompleteDom(_ref) {
|
|
|
131
131
|
textContent: placeholder
|
|
132
132
|
});
|
|
133
133
|
var detachedSearchButton = createDomElement('button', {
|
|
134
|
+
type: 'button',
|
|
134
135
|
class: classNames.detachedSearchButton,
|
|
135
|
-
onClick: function onClick(
|
|
136
|
-
event.preventDefault();
|
|
136
|
+
onClick: function onClick() {
|
|
137
137
|
setIsModalOpen(true);
|
|
138
138
|
},
|
|
139
139
|
children: [detachedSearchButtonIcon, detachedSearchButtonPlaceholder]
|
|
140
140
|
});
|
|
141
141
|
var detachedCancelButton = createDomElement('button', {
|
|
142
|
+
type: 'button',
|
|
142
143
|
class: classNames.detachedCancelButton,
|
|
143
144
|
textContent: translations.detachedCancelButtonText,
|
|
144
|
-
onClick: function onClick() {
|
|
145
|
+
onClick: function onClick(event) {
|
|
146
|
+
event.stopPropagation();
|
|
145
147
|
autocomplete.setIsOpen(false);
|
|
146
148
|
setIsModalOpen(false);
|
|
147
149
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-js 1.5.
|
|
1
|
+
/*! @algolia/autocomplete-js 1.5.4 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
|
|
312
312
|
var noop = function noop() {};
|
|
313
313
|
|
|
314
|
-
var version = '1.5.
|
|
314
|
+
var version = '1.5.4';
|
|
315
315
|
|
|
316
316
|
var userAgents$1 = [{
|
|
317
317
|
segment: 'autocomplete-core',
|
|
@@ -2956,17 +2956,19 @@
|
|
|
2956
2956
|
textContent: placeholder
|
|
2957
2957
|
});
|
|
2958
2958
|
var detachedSearchButton = createDomElement('button', {
|
|
2959
|
+
type: 'button',
|
|
2959
2960
|
class: classNames.detachedSearchButton,
|
|
2960
|
-
onClick: function onClick(
|
|
2961
|
-
event.preventDefault();
|
|
2961
|
+
onClick: function onClick() {
|
|
2962
2962
|
setIsModalOpen(true);
|
|
2963
2963
|
},
|
|
2964
2964
|
children: [detachedSearchButtonIcon, detachedSearchButtonPlaceholder]
|
|
2965
2965
|
});
|
|
2966
2966
|
var detachedCancelButton = createDomElement('button', {
|
|
2967
|
+
type: 'button',
|
|
2967
2968
|
class: classNames.detachedCancelButton,
|
|
2968
2969
|
textContent: translations.detachedCancelButtonText,
|
|
2969
|
-
onClick: function onClick() {
|
|
2970
|
+
onClick: function onClick(event) {
|
|
2971
|
+
event.stopPropagation();
|
|
2970
2972
|
autocomplete.setIsOpen(false);
|
|
2971
2973
|
setIsModalOpen(false);
|
|
2972
2974
|
}
|