mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-08 20:12:27 +03:00
add direction observer and improve sizeobserver tests
This commit is contained in:
@@ -16,7 +16,7 @@ export const generateSelectCallback = (targetElm: HTMLElement | null) => (event:
|
||||
const selectOptions = getSelectOptions(target);
|
||||
|
||||
if (targetElm) {
|
||||
targetElm.classList.remove(...selectOptions);
|
||||
selectOptions.forEach((clazz) => targetElm.classList.remove(clazz));
|
||||
targetElm.classList.add(selectedOption);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export const timeout = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
Reference in New Issue
Block a user