question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autofocus not working correctly with Widget

See original GitHub issue

It 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:closed
  • Created a year ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iparrcommented, Aug 15, 2022

That seems to have done the trick, cheers.

0reactions
mathiocommented, Sep 19, 2022

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 or autoFocus: true option. Or you can focus programmatically via the newly exposed focus() method.

More in my blog post.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found