-
Notifications
You must be signed in to change notification settings - Fork 18
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
When form validations fail, Add nested button behaviour is not woking. #47
Comments
can you share a test app to reproduce this? the code listens to the I think I have to move the event listener to the |
hey @tirnavali can you try using the gem from the github repo instead of rubygems/yarn? https://github.com/arielj/vanilla-nested#installation (check the alternate code using I pushed a refactor that should fix your problem, I would like to get some confirmation if it worked for you before making a release |
yeah I have that issue too |
@alviandf can you try with the latest commit from github instead of the version uploaded to rubygems and npm? I think it should be fixed with my latest changes, I would like to have confirmation before making a release check the installation section in the readme on how to use github for both yarn and bundler |
@arielj is it available for simple forms? |
hey @snjhyrglr, the way this works is it will render whatever you put in the partial for the nested fields, I haven't tried specifically with simple form but I see no reason for that to not work since once rails processes the partial it's just html that gets added as a data attribute |
@arielj thanks. already found out how to use it in simple forms. |
Released version 1.6.2 that fixes this issue in both npm and rubygems so no need to use the main branch anymore, closing. |
I think this problem is related with turbo but i can not solve it.
Ekran.Kaydi.2022-02-22.mov
The text was updated successfully, but these errors were encountered: