From 0f1caf789f40412ebf43623601090473c8819948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 9 Mar 2023 12:03:19 +0300 Subject: [PATCH] Fixed #3708- SelectButton: inverse unselectable behaviour --- api-generator/components/selectbutton.js | 2 +- components/selectbutton/SelectButton.d.ts | 2 +- components/selectbutton/SelectButton.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-generator/components/selectbutton.js b/api-generator/components/selectbutton.js index 24defa30c..4621fd151 100644 --- a/api-generator/components/selectbutton.js +++ b/api-generator/components/selectbutton.js @@ -50,7 +50,7 @@ const SelectButtonProps = [ { name: 'unselectable', type: 'boolean', - default: 'true', + default: 'false', description: 'Whether selection can be cleared.' }, { diff --git a/components/selectbutton/SelectButton.d.ts b/components/selectbutton/SelectButton.d.ts index 0acfa7098..4b23a0a36 100755 --- a/components/selectbutton/SelectButton.d.ts +++ b/components/selectbutton/SelectButton.d.ts @@ -65,7 +65,7 @@ export interface SelectButtonProps { dataKey?: string | undefined; /** * Whether selection can be cleared. - * @defaultValue true + * @defaultValue false */ unselectable?: boolean | undefined; /** diff --git a/components/selectbutton/SelectButton.vue b/components/selectbutton/SelectButton.vue index 152586ddd..0a27e2560 100755 --- a/components/selectbutton/SelectButton.vue +++ b/components/selectbutton/SelectButton.vue @@ -38,7 +38,7 @@ export default { multiple: Boolean, unselectable: { type: Boolean, - default: true + default: false }, disabled: Boolean, dataKey: null,