This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
[Number Input] Invalid use of min/max #565
Copy link
Copy link
Open
Description
chakra-ui-vue/packages/chakra-ui-core/src/CNumberInput/CNumberInput.js
Lines 423 to 435 in 74618e9
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?
Metadata
Metadata
Assignees
Labels
No labels