-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hideSignUp doesn't work with amplify-authenticator - Vue 3.x #6998
Comments
@csbszb Could you provide your |
hey @amhinson, this is the
|
It looks like you also need to add Could you try using |
Unfortunately it won't work because:
|
Ah thanks for the info @csbszb. It looks like StencilJS, which we use for our UI components, is still working on Vue 3 support. ionic-team/stencil-ds-output-targets#94 We will track this and update our library once the Stencil PR is released. |
II'm also going to close this particularly issue so we can track it in the other feature request issue you linked to. |
It looks like the problem is still reproduced. src/App.vue
|
Hi. Is this still an issue? It's weird that you have a vue 3 ui component but not the ability to hide sign up or change any other attributes on it. |
@GoodLuc make sure you are using |
@joshfriend the problem still remains: Vue 3 DOES NOT allow slot attributes, which is the way to customize the component @aws-amplify/ui-components -> see link, so the Vue 3 aws-amplify-ui component CANNOT be customized in Vue 3, which is strange. I ended up cloning the repo, modifing it and rebuilding my own version with the defaults I needed. |
I did a double take after reading your comment just now and realized the project I'm working on didn't migrate to Vue 3 yet, so you're obviously correct 😆 |
@joshfriend best of luck if you do. Like I said I just cloned the repo and made my own version, setting hideSignup = true as a default and so on. '^^ |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
When I use the
amplify-authenticator
component in a new project and try to hide the sign up link thehide-sign-up
attribute doesn't work properlyTo Reproduce
Steps to reproduce the behavior:
vue create myamplifyproject
(choose default values)npm install aws-amplify @aws-amplify/ui-components
src/main.js
App.vue
npm run serve
Expected behavior
The sign up block is hidden and can't see the "No account? Create account" option
Additional context
I started a debugger and saw that the
<amplify-sign-in>
component's render method is called twice. The first time thehideSignUp
attribute is correctly set totrue
, however when it's called the second time this value is overwritten withfalse
The text was updated successfully, but these errors were encountered: