Closed yanghao1351 closed 7 years ago
Hi @yanghao1351 ,
I don't understand Mandarin 😢
I think he ment that the plugin is not working with IE11. I had the same issue. I'll send you the accurate error message later
Hi kevinongko,
Thanks for an excellent plugin.
I've implemented this in a variety of forms in my application. It works perfect in Chrome/Firefox browsers. But getting the following error in IE11. Can you please help with ?
SCRIPT1046: Multiple definitions of a property not allowed in strict mode File: vue-numeric, Line: 1, Column: 4665
in this line - domProps:{value:e.value,value:e.amount}
Thanks, D
The problem seems to be the :value="value"
binding. If remove this the generated render function contains domProps: { value: _vm.amount }
as expected and it works in IE. I have not found any negative side effects.
From https://vuejs.org/v2/guide/forms.html#Basic-Usage:
v-model will ignore the initial
value
,checked
orselected
attributes found on any form elements.
It seems that the binding is not needed and instead you should do this.amount = this.value
which happens in mounted
anyway as far as I can tell.
Hope this helps.
Thanks for the suggestion and error messages guys, sorry for the late fix. The plugin (v2.2.2) should work now in IE11
IE11 strict模式下不允许一个属性有多个定义