Unable to Uncheck the checkbox when i am using currentnode.checkbox=false. #512
Unanswered
nithyasri123vns
asked this question in
Q&A
Replies: 1 comment
-
You can't manipulate the checkboxes directly that way. What you would need to do is re-render the dropdown with the first 5 nodes as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am trying to implement functionality where user can select only 5 child values per parent in drop down. when user checks 6th value i am showing pop up. But once done with pop up i am trying to uncheck the checkbox which is checked (i.e; 6th item) using checked=false. But its not working .
Here is my code
public onChange = (currentNode, selectedOpt) => {
try {
var a = currentNode
if (a.grandparent == "Brand") {
if (a.checked == true && (Brandcollection.length < 5)) {
Brandcollection.push(a.value)
}
}
But Using this i can uncheck box only once. if again user select the same value, he can see pop up but checkbox is not unchecked? why? please suggest
Beta Was this translation helpful? Give feedback.
All reactions