Lumuy

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Dynamic Nested Forms with Stimulus JS Discussion

Thanks, Chris. This help me a lot.
Only one problem.

In the stimulus controller, when task is not a new record, remove it will not hide the content.

change

wrapper.style.display = "none"

to

$(wrapper).children().hide()

Hope this could help others.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.