@smilodon/core 1.0.7 → 1.0.8
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/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1563,8 +1563,13 @@
|
|
|
1563
1563
|
this._config.callbacks.onOpen?.();
|
|
1564
1564
|
// Scroll to selected if configured
|
|
1565
1565
|
if (this._config.scrollToSelected.enabled) {
|
|
1566
|
-
// Use
|
|
1567
|
-
|
|
1566
|
+
// Use requestAnimationFrame for better timing after render
|
|
1567
|
+
requestAnimationFrame(() => {
|
|
1568
|
+
// Double RAF to ensure layout is complete
|
|
1569
|
+
requestAnimationFrame(() => {
|
|
1570
|
+
this._scrollToSelected();
|
|
1571
|
+
});
|
|
1572
|
+
});
|
|
1568
1573
|
}
|
|
1569
1574
|
}
|
|
1570
1575
|
_handleClose() {
|