From 006d037940893fc124d14d56105675e89c31f3e4 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 4 Oct 2024 13:13:09 +0300 Subject: [PATCH] Fixed #6432 --- packages/primevue/src/select/Select.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/select/Select.vue b/packages/primevue/src/select/Select.vue index e616a1e30..b1e0bf0d6 100755 --- a/packages/primevue/src/select/Select.vue +++ b/packages/primevue/src/select/Select.vue @@ -777,7 +777,7 @@ export default { }, bindLabelClickListener() { if (!this.editable && !this.labelClickListener) { - const label = document.querySelector(`label[for="${this.inputId}"]`); + const label = document.querySelector(`label[for="${this.labelId}"]`); if (label && isVisible(label)) { this.labelClickListener = () => { @@ -790,7 +790,7 @@ export default { }, unbindLabelClickListener() { if (this.labelClickListener) { - const label = document.querySelector(`label[for="${this.inputId}"]`); + const label = document.querySelector(`label[for="${this.labelId}"]`); if (label && isVisible(label)) { label.removeEventListener('click', this.labelClickListener);