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

feat: 🎸 throwAlertOnCancel control prop for SQFormDialog #807

Conversation

samasastudio
Copy link
Contributor

throwAlertOnCancel allows the option to override the Are You Sure dialog when cancelling SQFormDialog while in the middle of filling out. Set to true and will throw alert by default (same as previous behavior).

Closes: #806

loom video! https://www.loom.com/share/5f77ebacb0c049c2973b1135ce0bd60d

throwAlertOnCancel allows the option to override the Are You Sure dialog
when cancelling SQFormDialog while in the middle of filling out. Set to
true and will throw alert by default (same as previous behavior).

✅ Closes: SelectQuoteLabs#806
@laurelbean
Copy link
Contributor

This looks good!
Could you add a test case to the SQFormDialog tests for this scenario?

adds happy and sad path tests for throwAlertOnCancel

✅ Closes: SelectQuoteLabs#806
@samasastudio
Copy link
Contributor Author

absolutely, just pushed up happy and sad tests!

fixes test description for second test of throwAlertOnCancel

✅ Closes: SelectQuoteLabs#806
@20BBrown14 20BBrown14 merged commit 3d2b1f2 into SelectQuoteLabs:master Oct 5, 2022
ghost pushed a commit that referenced this pull request Oct 5, 2022
## [9.6.0](v9.5.0...v9.6.0) (2022-10-05)

### Features

* 🎸 throwAlertOnCancel control prop for SQFormDialog ([#807](#807)) ([3d2b1f2](3d2b1f2)), closes [#806](#806)
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.

Feature throwAlertOnCancel control prop for SQFormDialog
4 participants