Skip to content

Commit

Permalink
Fixed #6432
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 4, 2024
1 parent 573216a commit 006d037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand All @@ -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);
Expand Down

0 comments on commit 006d037

Please sign in to comment.