Skip to content

Commit 95cae14

Browse files
committed
fix: button support disabled=false #4930
close #4930
1 parent 61bf98e commit 95cae14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/button/button.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ export default defineComponent({
175175
],
176176
onClick: handleClick,
177177
};
178+
// https://github.com/vueComponent/ant-design-vue/issues/4930
179+
if (!disabled) {
180+
delete buttonProps.disabled;
181+
}
178182

179183
const iconNode = innerLoading.value ? <LoadingOutlined /> : icon;
180184

0 commit comments

Comments
 (0)