@smilodon/core 1.0.7 → 1.0.9
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/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +7 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1559,8 +1559,13 @@ class EnhancedSelect extends HTMLElement {
|
|
|
1559
1559
|
this._config.callbacks.onOpen?.();
|
|
1560
1560
|
// Scroll to selected if configured
|
|
1561
1561
|
if (this._config.scrollToSelected.enabled) {
|
|
1562
|
-
// Use
|
|
1563
|
-
|
|
1562
|
+
// Use requestAnimationFrame for better timing after render
|
|
1563
|
+
requestAnimationFrame(() => {
|
|
1564
|
+
// Double RAF to ensure layout is complete
|
|
1565
|
+
requestAnimationFrame(() => {
|
|
1566
|
+
this._scrollToSelected();
|
|
1567
|
+
});
|
|
1568
|
+
});
|
|
1564
1569
|
}
|
|
1565
1570
|
}
|
|
1566
1571
|
_handleClose() {
|