Closed williamsdyyz closed 4 months ago
I haven't tested it, but if you have a way to determine whether your code is running in Safari 17 (or a way to identify a particular "bugginess"), I think you could import the apply
method directly and skip the isSupported
check:
import { apply, isSupported } from '@oddbird/popover-polyfill/fn';
if (isSafari17 || !isSupported()) {
apply();
}
Interesting idea. I'll see what happens. Thanks
I ask because the Safari implementation is buggy and the polyfill works better!