Appcelerator: How to prevent Window.click fired when TableViewRow.click()? -


i have situation textfield embedded within tableviewrow http://cl.ly/1i372j0q062h010l2o0y

i wanted situation when click on "password" row, focus on password textfield , when click on anywhere else in window, password blur().

however, problem comes in when both window.click , passwordrow.click got fired when user clicks on passwordrow. make textfield.focus() , textfield.blur() got executed, resulting no focus @ all.

anyway can workaround it? or there better way blur listen window.click?

cheers, mickey

i have faced issue many times before. there strange bug events fired on tableview fire on window. had problem had text box set number pad, had click twice on text box show , wouldn't number pad.

there many solutions on forums such catching window events , doing nothing under circumstances, using modal windows etc. recommend not using tableview (if possible). style view same if need that.

if want go other route heres post, 1 of comments mentions filtering out other events:

http://developer.appcelerator.com/question/117540/textfield-on-tableview-loses-focus-android


Comments