Error: TextInput does not have attribute type
profblackjack opened this issue · comments
When binding a value to the 'type' attribute of a TextInput, and causing an update to change the type, vuido throws an Error
[Vue warn]: Error in nextTick: "Error: TextInput does not have attribute type"
(node:22840) UnhandledPromiseRejectionWarning: Error: TextInput does not have attribute type
example:
<template>
<Box>
<TextInput :type="activeType" />
<Button v-on:click="toggleActiveType" >Change Type</Button>
</Box>
</template>
<script>
export default {
data() {
return { activeType: "password" };
},
methods: {
toggleActiveType () {
this.activeType = this.activeType === "password" ? "text" : "password";
}
}
};
</script>
Unfortunately, the type of the TextInput currently cannot be changed at run-time.
Darn, I thought that might be the case seeing that the underlying libui control changed based on type, but I crossed my fingers and hoped anyway.
Thanks for confirming!