Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member IAmCoder's Avatar
    Join Date
    Mar 2012
    Posts
    33
    Answers
    4
    Vote Rating
    1
    IAmCoder is on a distinguished road

      0  

    Default Answered: Textfield clear button (x) / HTML5 search field clear button not working

    Answered: Textfield clear button (x) / HTML5 search field clear button not working


    The clear button (x) in a textfield is not working in one of my apps. Not sure what I have broken, but it now only clears the text after clicking on the "x" 4-5 times. Has anyone seen this before and found the cause of the problem / a solution?

  2. I managed to get it working with this hack:

    Code:
    [...].getComponent('FieldName').setValue('');
    target.setValue(''); // This line throws an error, but the text field is cleared
    So I manually set the text to an empty string and then have a line of code that throws an error.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Answers
    3447
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I have not had any issues for it myself. Is there an element on top of it capturing the tap or did you override the method that handles it?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha Premium Member IAmCoder's Avatar
    Join Date
    Mar 2012
    Posts
    33
    Answers
    4
    Vote Rating
    1
    IAmCoder is on a distinguished road

      0  

    Default


    No. I have noticed that it is clearing it - I just have to select another text field for it to refresh. So when you click on the clear button, the cursor moves all the way to the left, but the text is still there. It only clears the text once the control loses focus.

    I am trying to do this programmatically; getComponent('OtherSearchField').element.dom.focus(), but that does not help.

  5. #4
    Sencha Premium Member IAmCoder's Avatar
    Join Date
    Mar 2012
    Posts
    33
    Answers
    4
    Vote Rating
    1
    IAmCoder is on a distinguished road

      0  

    Default


    I managed to get it working with this hack:

    Code:
    [...].getComponent('FieldName').setValue('');
    target.setValue(''); // This line throws an error, but the text field is cleared
    So I manually set the text to an empty string and then have a line of code that throws an error.

Thread Participants: 1

Tags for this Thread