Element: [Bug Report] el-input maxlength="44" 必须使用:maxlength

Created on 16 Jun 2017  ·  7Comments  ·  Source: ElemeFE/element

Element UI version

1.3.6

OS/Browsers version

win7/chrome53.0.2774.3

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/pj71jkyw/

Steps to reproduce

maxlength="4"
found in

What is Expected?

maxlength="4"能直接使用

What is actually happening?

maxlength="4"不影响功能 console抛错

Most helpful comment

@tianhongye @mykite Mabye you can edit like :maxlength="42"

All 7 comments

That's how Vue works.

i got the common problem....

@tianhongye @mykite Mabye you can edit like :maxlength="42"

I noted this works with input of type="text", but not of type="number" on https://github.com/vuetifyjs/vuetify/issues/576.

@leotm Thanks! This note is a great help to me.

@Leopoldthecoder I think it should support type = "number".

@youyou837 我也觉得应该支持 type = "number"

Was this page helpful?
0 / 5 - 0 ratings