pull/6537/head
tugcekucukoglu 2024-10-04 13:13:09 +03:00
parent 573216a1ef
commit 006d037940
1 changed files with 2 additions and 2 deletions

View File

@ -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);