Skip to content

Modify reclaim dialog to also submit on enter press in input element#17

Open
Bortseb wants to merge 1 commit intofedwiki:masterfrom
Bortseb:master
Open

Modify reclaim dialog to also submit on enter press in input element#17
Bortseb wants to merge 1 commit intofedwiki:masterfrom
Bortseb:master

Conversation

@Bortseb
Copy link

@Bortseb Bortseb commented May 5, 2025

Moved the fetch to /auth/reclaim/ endpoint into form submit event, rather than dialog close event. This makes it so enter press on input element will also submit form, and try to authenticate.

made cancel button close the dialog, which no longer implies trying to authenticate.

Moved the fetch to /auth/reclaim/ endpoint into form submit event, rather than dialog close event. This makes it so enter press on input element will also submit form.

made cancel button close the dialog, which no longer implies trying to authenticate.
Copy link
Member

@WardCunningham WardCunningham left a comment

Choose a reason for hiding this comment

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

Nick and I read through these diffs and it all makes sense.
We did not actually run the code. My only worry would be that there is some difference in the dialog handling between PC and Mac.

@Bortseb
Copy link
Author

Bortseb commented May 5, 2025

I only tested in chrome on Windows... So not sure, but I thought this was all using standardized dialogs/forms from html?

@Bortseb
Copy link
Author

Bortseb commented May 5, 2025

Would mac generally be the same as Linux? Maybe I can set up a virtual environment on my system for better testing? I'll test with Firefox too.

1 similar comment
@Bortseb
Copy link
Author

Bortseb commented May 5, 2025

Would mac generally be the same as Linux? Maybe I can set up a virtual environment on my system for better testing? I'll test with Firefox too.

@WardCunningham
Copy link
Member

Robert reports success:
image

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.

2 participants