Skip to content

Commit

Permalink
fix(checkbox): checkboxGroup max effects disable status
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopZhou authored and uyarn committed Apr 11, 2024
1 parent 9b8bf08 commit 2ab2774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/checkbox/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
defineComponent, ref, toRefs, inject, watch, onBeforeUnmount, computed, nextTick,
defineComponent, ref, toRefs, inject, watch, onBeforeUnmount, computed,
} from 'vue';
import props from './props';
import {
Expand Down Expand Up @@ -155,9 +155,9 @@ export default defineComponent({
* checked state can influence disabled state because of `max`,
* therefore we need to update disabled state after checked state changed
*/
nextTick(() => {
setTimeout(() => {
handleParentDisabled(data);
});
}, 0);
if (data.checkboxName) {
tName.value = data.checkboxName;
}
Expand Down

0 comments on commit 2ab2774

Please sign in to comment.