@danielgindi/selectbox 1.0.102 → 1.0.103
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/dist/lib.cjs.js +13 -1
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +13 -1
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +13 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/SelectBox.js +12 -0
- package/package.json +4 -4
package/dist/lib.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.103
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -10054,7 +10054,19 @@ var SelectBox = /*#__PURE__*/function () {
|
|
|
10054
10054
|
|
|
10055
10055
|
if (window.ResizeObserver !== undefined) {
|
|
10056
10056
|
p.resizeObserver = new ResizeObserver(function () {
|
|
10057
|
+
p.resizeObserver.unobserve(p.el); // avoid ResizeObserver infinite loop
|
|
10058
|
+
|
|
10059
|
+
if (_this[DestroyedSymbol])
|
|
10060
|
+
return;
|
|
10061
|
+
|
|
10057
10062
|
_this._resizeInput();
|
|
10063
|
+
|
|
10064
|
+
// avoid ResizeObserver infinite loop - only renew the observation after the new layout has settled
|
|
10065
|
+
requestAnimationFrame(function () {
|
|
10066
|
+
if (_this[DestroyedSymbol])
|
|
10067
|
+
return;
|
|
10068
|
+
p.resizeObserver.observe(p.el);
|
|
10069
|
+
});
|
|
10058
10070
|
});
|
|
10059
10071
|
p.resizeObserver.observe(p.el);
|
|
10060
10072
|
}
|