We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What do you think about adding an undo action?
undo(e: Event): void { e.preventDefault() // @ts-ignore const wrapper: HTMLElement = e.target.closest(this.wrapperSelectorValue) wrapper.style.display = "" const input: HTMLInputElement = wrapper.querySelector("input[name*='_destroy']") input.value = "0" const event = new CustomEvent("rails-nested-form:undo", { bubbles: true }) this.element.dispatchEvent(event) }
I'm looking for a method like that but I think it's not so simple...
Other important point is about event. Documentation don't tell us about CustomEvent("rails-nested-form:remove", { bubbles: true })
CustomEvent("rails-nested-form:remove", { bubbles: true })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What do you think about adding an undo action?
I'm looking for a method like that but I think it's not so simple...
Other important point is about event. Documentation don't tell us about
CustomEvent("rails-nested-form:remove", { bubbles: true })
The text was updated successfully, but these errors were encountered: