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
    Admin
    Georgi Krustev avatar
    3707 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
    widget.trigger("change");
    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.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top