nativescript-filterable-listpicker icon indicating copy to clipboard operation
nativescript-filterable-listpicker copied to clipboard

FocusOnShow doesnt work with TextFields

Open LorenDorez opened this issue 7 years ago • 3 comments

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 avatar Mar 20 '18 17:03 LorenDorez

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?

LorenDorez avatar Mar 20 '18 17:03 LorenDorez

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

davecoffin avatar Jul 13 '18 12:07 davecoffin

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)

stevenspiel avatar Dec 18 '18 13:12 stevenspiel