I migrate to Vue3 and I got this Vue warn, I don't really understand how to solve it. That happend when I use el-button of element-plus library.
The code:
<div>
<el-button
style="font-size: 30px"
class="element-btn"
type="primary"
circle
@click="buttonsController('add-button')"
>
<div>
<el-icon :size="30"><Plus /></el-icon>
<p style="margin-top: 15px">Add</p>
<p style="margin-top: -10px">Dates</p>
</div>
</el-button>
</div>
There is a breaking change in Vue 3 that is mentioned in the migration guide (point 2 in the overview).
If you want to get rid of the warning, you should set the attribute value to
null
orundefined
instead offalse
. Otherwise vue will apply the attribute withfalse
instead of removing it.Example