Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[Number Input] Invalid use of min/max #565

Open
Heziode opened this issue Jul 25, 2023 · 0 comments
Open

[Number Input] Invalid use of min/max #565

Heziode opened this issue Jul 25, 2023 · 0 comments

Comments

@Heziode
Copy link

Heziode commented Jul 25, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant