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

FocusOnShow doesnt work with TextFields #18

Open
LorenDorez opened this issue Mar 20, 2018 · 3 comments
Open

FocusOnShow doesnt work with TextFields #18

LorenDorez opened this issue Mar 20, 2018 · 3 comments

Comments

@LorenDorez
Copy link

If the this is called from a disable TextField's tap even the focusOnShow doesnt work property. If i switch from a TextField to a label or button it works fine.

But i use the to help with a form where there are textBoxes.

@LorenDorez
Copy link
Author

If i add a delay it works

setTimeout(() => {
                            const textField = viewModel.page.getViewById('filterTextField');
                            const r = textField.focus();
                            console.log(`TEST: ${textField} => ${r}`);
                        }, 1000);

Any change to be able to add a delay or property for delayedFocus?

@davecoffin
Copy link
Owner

Hey there, sorry I think I missed this. So you want to focus the textfield when it opens?

@stevenspiel
Copy link

Adding focusOnShow="true" works great for me. (filterable-list-picker version 2.2.3, tns version 5.2.0-2018-12-14-12741 running on ios and android emulators)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants