Replies: 2 comments 1 reply
-
|
Hey @bergser, what do you think about creating a v-model for this instead which behaves the same like this:
Like this you can also easily implement features like initial state, force the password to always be shown/hidden etc. Example usage: <script lang="ts" setup>
const showPassword = ref(false);
</script>
<template>
<OnyxInput label="Password" type="password" v-model:show-password="showPassword" />
</template> |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
The OnyxInput already supports the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have following use case:
In the app user can generate random password
We want to automatically place the generated password into the "New password" field and display it to the user.
However, since it's currently not possible to change the password field's visibility from outside the component, we implemented a workaround using an additional helper field.
Proposal: expose
showPasswordfrom OnyxInput component.Beta Was this translation helpful? Give feedback.
All reactions