diginet-core-ui 1.4.53-beta.5 → 1.4.53-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,10 +239,8 @@ const TreeView = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
239
239
  // // Trường hợp phải set về false để xét các input đã check không bao gồm node này
240
240
  checkbox.firstChild.checked = isChecked;
241
241
  determinateCheckbox(checkbox.firstChild, !mustDisabled);
242
- setTimeout(() => {
243
- // Nếu có ít nhất một input con được check thì phải checked cho input này
244
- checkbox.firstChild.checked = mustDisabled;
245
- }, 200);
242
+ // Nếu có ít nhất một input con được check thì phải checked cho input này
243
+ checkbox.firstChild.checked = mustDisabled;
246
244
  node.classList[mustDisabled || isChecked ? 'add' : 'remove']('disabled');
247
245
  checkbox.classList[mustDisabled || isChecked ? 'add' : 'remove']('disabled');
248
246
  Array.from(node.childNodes).forEach(e => {
@@ -696,7 +694,9 @@ const TreeView = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference)
696
694
  Array.from(ref.current.querySelectorAll('.TreeView-Item.non-child, .DGN-UI-Accordion')).forEach(el => {
697
695
  if (el.firstChild.querySelector('input').checked) {
698
696
  if (!el.classList.contains('non-child')) {
699
- handleDisabledChildren(el, true);
697
+ setTimeout(() => {
698
+ handleDisabledChildren(el, true);
699
+ }, 200);
700
700
  }
701
701
  handleDisabledParent(el.parentNode, true);
702
702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.4.53-beta.5",
3
+ "version": "1.4.53-beta.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",