Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

modelPickerVisibility.ts

8 lines241 Bytes

1const MODEL_PICKER_CONTENT_SELECTOR = "[data-model-picker-content]";
2​
3export function isModelPickerOpen(): boolean {
4 return (
5 typeof document !== "undefined" &&
6 document.querySelector(MODEL_PICKER_CONTENT_SELECTOR) !== null
7 );
8}