Fixed #6432
parent
573216a1ef
commit
006d037940
|
@ -777,7 +777,7 @@ export default {
|
||||||
},
|
},
|
||||||
bindLabelClickListener() {
|
bindLabelClickListener() {
|
||||||
if (!this.editable && !this.labelClickListener) {
|
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)) {
|
if (label && isVisible(label)) {
|
||||||
this.labelClickListener = () => {
|
this.labelClickListener = () => {
|
||||||
|
@ -790,7 +790,7 @@ export default {
|
||||||
},
|
},
|
||||||
unbindLabelClickListener() {
|
unbindLabelClickListener() {
|
||||||
if (this.labelClickListener) {
|
if (this.labelClickListener) {
|
||||||
const label = document.querySelector(`label[for="${this.inputId}"]`);
|
const label = document.querySelector(`label[for="${this.labelId}"]`);
|
||||||
|
|
||||||
if (label && isVisible(label)) {
|
if (label && isVisible(label)) {
|
||||||
label.removeEventListener('click', this.labelClickListener);
|
label.removeEventListener('click', this.labelClickListener);
|
||||||
|
|
Loading…
Reference in New Issue