We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getRealEventTarget
Event.composedPath()
Event.path
pickadate.js/lib/picker.js
Lines 996 to 1017 in 0fd34ea
getRealEventTarget() uses Event.path, which is a non-standard API available only in Chromium-based browsers.
getRealEventTarget()
It should instead use Event.composedPath() [1], which is a standard API that returns the same result but is supported by all major browsers [2].
Chromium is also deprecating Event.path in favor of Event.composedPath().
See: [1] https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath [2] https://caniuse.com/?search=Event.composedPath [3] https://bugs.chromium.org/p/chromium/issues/detail?id=1277431
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pickadate.js/lib/picker.js
Lines 996 to 1017 in 0fd34ea
getRealEventTarget()
usesEvent.path
, which is a non-standard API available only in Chromium-based browsers.It should instead use
Event.composedPath()
[1], which is a standard API that returns the same result but is supported by all major browsers [2].Chromium is also deprecating
Event.path
in favor ofEvent.composedPath()
.See:
[1] https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath
[2] https://caniuse.com/?search=Event.composedPath
[3] https://bugs.chromium.org/p/chromium/issues/detail?id=1277431
The text was updated successfully, but these errors were encountered: