Skip to content
New issue

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

Fix focus loss on popups in Samsung Tizen 8 Smart TVs #6408

Merged
merged 9 commits into from
Jan 10, 2025
2 changes: 1 addition & 1 deletion src/components/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default async function (text, title) {
// Modals seem to be blocked on Web OS and Tizen 2.x
const canUseNativeAlert = !!(
!browser.web0s
&& !(browser.tizenVersion && browser.tizenVersion < 3)
&& !(browser.tizenVersion && (browser.tizenVersion < 3 || browser.tizenVersion >= 8))
&& browser.tv
&& window.alert
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/confirm/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function useNativeConfirm() {
// webOS seems to block modals
// Tizen 2.x seems to block modals
return !browser.web0s
&& !(browser.tizenVersion && browser.tizenVersion < 3)
&& !(browser.tizenVersion && (browser.tizenVersion < 3 || browser.tizenVersion >= 8))
&& browser.tv
&& window.confirm;
}
Expand Down
Loading