mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
chore: fix typo (#13592)
This commit is contained in:
@@ -56,8 +56,8 @@ const onInput = (key: ValueKeys) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const maxlegnth = current.value === 'customLength' ? 4 : 6;
|
||||
const newValue = (values.value[current.value] + key).slice(0, maxlegnth);
|
||||
const maxlength = current.value === 'customLength' ? 4 : 6;
|
||||
const newValue = (values.value[current.value] + key).slice(0, maxlength);
|
||||
|
||||
values.value[current.value] = newValue;
|
||||
|
||||
|
Reference in New Issue
Block a user