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

Update the toggle_scheduling_mode to wait until the switch happens. #18132

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

dombesz
Copy link
Contributor

@dombesz dombesz commented Mar 3, 2025

Ticket

N/A

What are you trying to accomplish?

Prevent submitting the datepicker form too quickly, before the toggle happens.

What approach did you choose and why?

This expectation waits for the turbo request to complete and prevent submitting the form too early.

Additionally another bug is fixed here which caused the calendar turbo frame rendering to bloat the dom by not replacing the correct elements. To reproduce the original issue, just switch between manual an automatic mode a few times. Every time the re-render happens, a new turbo frame is added inside the existing one.

Screenshot of the error

image

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@dombesz dombesz force-pushed the fix-flaky-spec branch 2 times, most recently from d350cd8 to e4121fb Compare March 3, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant