ng-valid Issue

2 posts, 0 answers
  1. Elliot
    Elliot avatar
    59 posts
    Member since:
    May 2012

    Posted 11 Jun 2015 Link to this post

    I implemented the functionality from here to clear text when it doesnt match an item from the datasource however the input is marked valid even though it is marked required.  How do I correct this?
  2. Georgi Krustev
    Georgi Krustev avatar
    3725 posts

    Posted 15 Jun 2015 Link to this post

    Hello Elliot,

    In general, the value method will not trigger change event, which many bindings listen to. I am not exactly sure what exactly is the implementation, but I suppose that you need to trigger change to notify for the update:
    widget.value(""); //reset widget
    Be careful to avoid infinitive loop when call trigger("change") in the change event callback.

    If the problem still persists, please send us a repro demo.

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