From aed21e85acf579692696404046651eda2199bec6 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sun, 1 Mar 2020 15:49:13 +0800 Subject: [PATCH] fix(radio): should focus on mousedown, not click --- src/Radio/src/radioMixin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Radio/src/radioMixin.js b/src/Radio/src/radioMixin.js index e3b9cdf77..422d5de9f 100644 --- a/src/Radio/src/radioMixin.js +++ b/src/Radio/src/radioMixin.js @@ -59,7 +59,6 @@ export default { methods: { toggle () { if (this.syntheticDisabled) return - this.$refs.input.focus() if (this.checkedValue !== this.value) { this.emitChangeEvent() } @@ -76,6 +75,10 @@ export default { handleKeyUpEnter () { this.toggle() }, + handleMouseDown () { + if (this.syntheticDisabled) return + this.$refs.input.focus() + }, handleClick (e) { this.$emit('click', e) this.toggle()