Autofocus not working correctly with Widget
See original GitHub issueIt seems the embed-focus
event mentioned in #380 is no longer available. What this means is the iframe is not autofocused when using the Widget
component. How can this be addressed with current versions of the embed package?
Issue Analytics
- State:
- Created a year ago
- Comments:19 (5 by maintainers)
Top Results From Across the Web
flutter - AutoFocus isn't working in multiple Stateful widgets ...
The issue -- is that only the first page (that has an autofocus on a TextField widget) is actually getting the focus. As...
Read more >No way to autofocus Widget #380 - Typeform/embed - GitHub
Some modalities (like Popup) autofocus when they open, but I can only autofocus the full-screen “embed” form if I use iframe.contentWindow.
Read more >AutoFocus Known Issues - Palo Alto Networks
The Top Sample widget fails to load properly in the My Industry and All reports. ATF-9284. AutoFocus advanced searches using the Threat Name ......
Read more >Autofocus does not work in any apps other than the camera app
The autofocus just does not work and the focus cannot be done manually. Taking normal pictures in the camera app works without any...
Read more >iPhone 14 Pro autofocus not working on closer & regular objects
Many iPhone 14 Pro and Pro Max users are facing an issue where autofocus is not working on closer and regular objects. (Workarounds...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That seems to have done the trick, cheers.
There was an update to the auto focus feature recently: https://github.com/Typeform/embed/pull/521
It is disabled by default for widget / standard embeds. It can be enabled via
data-tf-auto-focus
orautoFocus: true
option. Or you can focus programmatically via the newly exposedfocus()
method.More in my blog post.