Skip to content
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

Add Rails/ujs to Autosave #164

Closed
wants to merge 1 commit into from
Closed

Add Rails/ujs to Autosave #164

wants to merge 1 commit into from

Conversation

Merovex
Copy link

@Merovex Merovex commented Jul 24, 2022

The current Autosave references Rails.fire but does not include Rails. Adding import Rails from '@rails/ujs' should address this.

The current Autosave references `Rails.fire` but does not include Rails. Adding `import Rails from '@rails/ujs'` should address this.
@hcurotta
Copy link

What is the consensus on using .requestSubmit() rather than Rails.fire?

This would make it compatible with Turbo and remove the dependency on Rails/ujs.

@jbennett
Copy link

jbennett commented Jul 1, 2023

This isn't using Rails.fire any more (11f7338).

Agree with @hcurotta that it should be switched to .requestSubmit though

@excid3 excid3 closed this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants