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

fix: button submitters now work #165

Merged
merged 1 commit into from
Nov 23, 2021
Merged

Conversation

KonnorRogers
Copy link
Owner

Status

Ready

Related Issue(s)

Fixes a bug where button based submitters would not work.

Additional Notes

Also changes logic for buttons querySelectors, and links no longer stop everything (@DavidColby)

@netlify
Copy link

netlify bot commented Nov 23, 2021

✔️ Deploy Preview for mrujs canceled.

🔨 Explore the source changes: c56ad92

🔍 Inspect the deploy log: https://app.netlify.com/sites/mrujs/deploys/619c4b8b6a838c000782360e

@KonnorRogers KonnorRogers force-pushed the fix/button-and-link-submissions branch from 806bdc2 to 84e1707 Compare November 23, 2021 01:23
@@ -80,7 +80,7 @@ export const BASE_SELECTORS: QuerySelectorInterface = {
linkDisableSelector: `a[${disableWith}], a[${disable}]`,

// Button onClick disable selector with possible reenable after remote submission
buttonDisableSelector: `button[${disableWith}], button[${disable}]`,
buttonDisableSelector: `button[data-remote][${disableWith}], button[data-remote][${disable}]`,
Copy link
Owner Author

@KonnorRogers KonnorRogers Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aligns off of rails-ujs. Unrelated to this PR.

@KonnorRogers KonnorRogers force-pushed the fix/button-and-link-submissions branch from 84e1707 to c56ad92 Compare November 23, 2021 02:01
@KonnorRogers KonnorRogers merged commit 917d362 into main Nov 23, 2021
@KonnorRogers KonnorRogers deleted the fix/button-and-link-submissions branch November 23, 2021 02:11
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.

1 participant