We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 526cb49 + 4228ad0 commit 788b1cfCopy full SHA for 788b1cf
lib/src/web/web_unity_widget_controller.dart
@@ -256,7 +256,8 @@ class WebUnityWidgetController extends UnityWidgetController {
256
.querySelector('flt-platform-view')
257
?.querySelector('iframe');
258
259
- if (frame != null && _isJsObjectOfType(frame, 'HTMLIFrameElement')) {
+ final JSAny? jsFrame = frame.jsify();
260
+ if (frame != null && _isJsObjectOfType(jsFrame, 'HTMLIFrameElement')) {
261
(frame as web.HTMLIFrameElement).focus();
262
}
263
0 commit comments