chakra-ui / chakra-ui-vue

⚡️ Build scalable and accessible Vue.js applications with ease.

Home Page:https://vue.chakra-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Number Input] Invalid use of min/max

Heziode opened this issue · comments

if (event.key === 'Home') {
event.preventDefault()
if (isDef(this.min)) {
this.updateValue(this.max)
}
}
if (event.key === 'End') {
event.preventDefault()
if (isDef(this.max)) {
this.updateValue(this.min)
}
}

The following code:

   if (isDef(this.min)) { 
     this.updateValue(this.max) 
   }

Should be:

   if (isDef(this.min)) { 
     this.updateValue(this.min) 
   }

And vice-versa right? Or there's something I didn't understand in the logic of the component?