Skip to content

Conversation

mathio
Copy link
Contributor

@mathio mathio commented Sep 13, 2022

New option autoFocus / data-tf-auto-focus to enable auto focus.
Each embed also returns focus() method to dispatch the focus event manually.

@mathio mathio requested a review from a team September 13, 2022 20:42
window.addEventListener(
'message',
getFormReadyHandler(embedId, () => {
setTimeout(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setTimeout is necessary because of the loading screen, see #513 (comment)

New option `autoFocus` / `data-tf-auto-focus` to enable auto focus.
Each embed also returns `focus()` method to dispatch the focus event manually.
@mathio mathio merged commit ecdc1d5 into main Sep 16, 2022
@mathio mathio deleted the dist1865 branch September 16, 2022 13:50
@typeform-ops-gha
Copy link

🎉 This PR is included in version @typeform/embed-v1.38.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants