Results 1 to 2 of 2

Thread: the invalid class disapear when receive then loose the focus

  1. #1
    Sencha User
    Join Date
    Jul 2010
    Posts
    304

    Default the invalid class disapear when receive then loose the focus

    Hi,
    I have a Ext.form.DateField that is marked invalid after a form.submit. the dom element has a class 'x-form-invalid'. I suppose that it correspond to the red border class.

    When I receive the focus then I loose the focus on the field the invalid class ('x-form-invalid') disappear

    How can I keep the invalid class even if I receive then loose the focus ?

    Thank you in advance for your answers

    PS: I suppose it is the same for a Ext.form.Field

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Posts
    304

    Default

    I understood what is going on. I have a validator on my field which is fired when I loose the focus.

    So the problem is to desactivate the validator when I have a previous invalid message and the value has not changed since this previous message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •