mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(radio): should focus on mousedown, not click
This commit is contained in:
parent
0d3f5ee896
commit
aed21e85ac
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user