You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a rule to an element -> $("#myelement" ).rules("add", {required: true});
remove these rules -> console.log($("#myelement" ).rules("remove")); // returns empty object
Expected behaviour
You'd expect $("#myelement" ).rules("remove") to return {required: true}
This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up.
Thank you for contributing :)
Subject of the issue
rules("remove") does not return the removed rules
Your environment
version 1.16.0
Steps to reproduce
add a rule to an element ->
$("#myelement" ).rules("add", {required: true});
remove these rules ->
console.log($("#myelement" ).rules("remove")); // returns empty object
Expected behaviour
You'd expect
$("#myelement" ).rules("remove")
to return {required: true}Actual behaviour
$("#myelement" ).rules("remove")
returns empty objectThe text was updated successfully, but these errors were encountered: