Change event not triggered when value cleared manually

2 posts, 0 answers
  1. Darren
    Darren avatar
    11 posts
    Member since:
    Sep 2014

    Posted 30 Jul 2015 Link to this post

    Hi I have this issue for a while and all my attempts to resolve it haven't worked out.

    It can be demonstrated here:

    If you have a clear button the clears the value in the numeric textbox then upon entering the old value in the numeric textbox doesn't trigger the change event.

    Steps to reproduce:

    a) Add the value 5 in numeric textbox and observe the change event
    b) Press clear button
    c) Add the value 5 in numeric textbox and notice the change event is NOT triggered.

    Do you have a solution for this?

    As you can see I have tried editing the _old and the _value but it didn't help.

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 03 Aug 2015 Link to this post

    Hello Darren,

    The behavior that you are describing is made that way by design and in order for the change event to fire, the input element should be focused and blurred. Another option is to manually trigger the change event:

    You could also take a look at the following forum thread, where the same question is discussed:
    Hope this helps.

    Konstantin Dikov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top