@plesk/ui-library 3.28.2 → 3.28.3
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.
- package/cjs/components/AutoClosable/AutoClosable.js +6 -2
- package/cjs/components/FormField/FormField.js +1 -1
- package/cjs/components/Overlay/Overlay.js +0 -2
- package/cjs/components/Select/Select.js +3 -3
- package/cjs/index.js +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +11 -9
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +2 -2
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/AutoClosable/AutoClosable.js +6 -2
- package/esm/components/FormField/FormField.js +1 -1
- package/esm/components/Overlay/Overlay.js +0 -2
- package/esm/components/Select/Select.js +3 -3
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/styleguide/build/bundle.3b7e4d37.js +2 -0
- package/styleguide/build/{bundle.699238d9.js.LICENSE.txt → bundle.3b7e4d37.js.LICENSE.txt} +0 -0
- package/styleguide/index.html +2 -2
- package/styleguide/build/bundle.699238d9.js +0 -2
|
@@ -67,7 +67,9 @@ class AutoClosable extends Component {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
componentDidMount() {
|
|
70
|
-
document.body.addEventListener('click', this.onOutsideClick
|
|
70
|
+
document.body.addEventListener('click', this.onOutsideClick, {
|
|
71
|
+
capture: true
|
|
72
|
+
});
|
|
71
73
|
|
|
72
74
|
if (this.context) {
|
|
73
75
|
this.context.addChild(this);
|
|
@@ -75,7 +77,9 @@ class AutoClosable extends Component {
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
componentWillUnmount() {
|
|
78
|
-
document.body.removeEventListener('click', this.onOutsideClick
|
|
80
|
+
document.body.removeEventListener('click', this.onOutsideClick, {
|
|
81
|
+
capture: true
|
|
82
|
+
});
|
|
79
83
|
|
|
80
84
|
if (this.context) {
|
|
81
85
|
this.context.removeChild(this);
|
|
@@ -172,8 +172,8 @@ const Select = ({
|
|
|
172
172
|
|
|
173
173
|
if (filterValue) {
|
|
174
174
|
const lowerFilterValue = filterValue.toLowerCase();
|
|
175
|
-
groupFns.push(group => !!group.label && group.label.toLowerCase().
|
|
176
|
-
optionFns.push(option => option.label.toLowerCase().
|
|
175
|
+
groupFns.push(group => !!group.label && group.label.toLowerCase().includes(lowerFilterValue));
|
|
176
|
+
optionFns.push(option => option.label.toLowerCase().includes(lowerFilterValue));
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
if (groupFns.length || optionFns.length) {
|
|
@@ -253,7 +253,7 @@ const Select = ({
|
|
|
253
253
|
|
|
254
254
|
const handleHighlightSearch = query => {
|
|
255
255
|
const lowerQuery = query.toLowerCase();
|
|
256
|
-
const index = options.findIndex(o => !o.disabled && o.label.toLowerCase().
|
|
256
|
+
const index = options.findIndex(o => !o.disabled && o.label.toLowerCase().includes(lowerQuery));
|
|
257
257
|
|
|
258
258
|
if (index !== -1) {
|
|
259
259
|
setHighlightedIndex(index);
|
package/esm/index.js
CHANGED