You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure I'm reporting something precise that needs to be fixed
Give my issue a descriptive and concise title
Create a minimal working example on JsFiddle or Codepen
(or gave a link to a demo on the Selectize docs)
Indicate precise steps to reproduce in numbers and the result
User Agent strings are being reduced in Chrome 101. While it looks like the elements Selectize relies on will still be available, it might be best to migrate to navigator.userAgentData for safety, and also to avoid an issue being raised in the console every time the library is loaded.
navigator.userAgentData is not supported in all browsers, so would need feature detection before ua detection (!) but could be achieved with something along the lines of:
functionuaDetect(platform,re){if(navigator.userAgentData){returnplatform===navigator.userAgentData.platform;}returnre.test(navigator.userAgent);}varIS_MAC=uaDetect("macOS",/Mac/);// Unsure of the `platform` which is reported for AndroidvarSUPPORTS_VALIDITY_API=!uaDetect("[Android Platform]",/android/i)&&!!document.createElement('input').validity;
Would there be any appetite for this? I can look into the platform which is reported for Android devices and create a PR to update both places in the constants.js file if so?
Relatedly, does Selectize still need to support IE < 11? It would be quite nice to move these variables to consts if not, but constis not supported in IE < 11.
The text was updated successfully, but these errors were encountered:
I did:
(or gave a link to a demo on the Selectize docs)
User Agent strings are being reduced in Chrome 101. While it looks like the elements Selectize relies on will still be available, it might be best to migrate to
navigator.userAgentData
for safety, and also to avoid an issue being raised in the console every time the library is loaded.navigator.userAgentData
is not supported in all browsers, so would need feature detection before ua detection (!) but could be achieved with something along the lines of:Would there be any appetite for this? I can look into the
platform
which is reported for Android devices and create a PR to update both places in theconstants.js
file if so?Relatedly, does Selectize still need to support IE < 11? It would be quite nice to move these variables to
const
s if not, butconst
is not supported in IE < 11.The text was updated successfully, but these errors were encountered: