[Vuejs]-Is there an issue with the el-input element im using because i gets the on-icon-click error

3👍

This attribute was removed in Release 2.0.0 Carbon

Note:
Removed on-icon-click attribute and click event. Now to add click handler on icons, please use named slots.

The code is modified as follows

<el-input
  type="password"
  v-model="data.password"
>
  <i slot="prefix" class="el-icon-lock" @click="show"></i>
  <i slot="suffix" class="el-icon-view" @click="show"></i>
</el-input>
👤sugars

Leave a comment