question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow disabled items to be unchecked

See original GitHub issue

I have an item set as disabled: true and checked: false but if the item is disabled it will always show the checkbox as checked.

const vegetableCategory = new TreeviewItem({
      text: 'Vegetable', value: 2, children: [
        { text: 'Salad', value: 21 },
        { text: 'Potato', value: 22, checked: false, disabled: true }
      ]
    });

I tried vegetableCategory.correctChecked(); but it seems to have no effect.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vikashkronlinecommented, Jul 22, 2017

@leovo2708 Keep disabled item unchanged and place (!) icon with hover message for the same

1reaction
leovo2708commented, Jul 21, 2017

@jackjamieson I have a problem if checking on All checkbox, but one item is disabled & unchecked, How should I handle it? Revert All checkbox to unchecked or keep?

Read more comments on GitHub >

github_iconTop Results From Across the Web

If check box checked disable other, if unchecked enable all ...
My current code is failing to set disable attribute to true and false when check box is checked. If you see where is...
Read more >
HTML DOM Input Checkbox disabled Property - W3Schools
Definition and Usage. The disabled property sets or returns whether a checkbox should be disabled, or not. A disabled element is unusable and...
Read more >
MS Teams add in in Outlook won't enable - Microsoft Learn
At the bottom of the add-ins screen next to "Manage", click the drop-down and change to "Disabled Items" and then click Go. Click...
Read more >
mat-checkbox, Angular material checkbox component Usage ...
Using disabled property of mat-checkbox we can disable angular material checkbox. <mat-checkbox disabled>Checkbox Disabled</mat-checkbox> ...
Read more >
EndNote: CWYW tools are disabled and missing in Word ...
Change the "Manage" options to "Disabled Items." Click Go. Highlight any EndNote item(s) ... Click on Customize Ribbon and Check EndNote if it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found