mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(van-field): Invalid maxlength on Android devices
This commit is contained in:
parent
466b9b5504
commit
05f6159df8
@ -79,7 +79,8 @@ VantComponent({
|
||||
|
||||
const { maxlength } = this.data;
|
||||
if (maxlength !== -1 && value.length > maxlength) {
|
||||
return;
|
||||
this.value = value.slice(0, maxlength);
|
||||
event.detail.value = this.value;
|
||||
}
|
||||
|
||||
this.setShowClear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user