From 62c14bf2ffaca68e595ca33377136bd2c1b78963 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 11 Dec 2024 11:35:48 +0300 Subject: [PATCH] Fixed #6718 - SelectButton: allowEmpty does not stop unselecting --- packages/primevue/src/selectbutton/SelectButton.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/primevue/src/selectbutton/SelectButton.vue b/packages/primevue/src/selectbutton/SelectButton.vue index 4f9b9ad55..648142fe8 100755 --- a/packages/primevue/src/selectbutton/SelectButton.vue +++ b/packages/primevue/src/selectbutton/SelectButton.vue @@ -8,6 +8,7 @@ :disabled="disabled || isOptionDisabled(option)" :unstyled="unstyled" :size="size" + :readonly="!allowEmpty && isSelected(option)" @change="onOptionSelect($event, option, index)" :pt="ptm('pcToggleButton')" >