Skip to content

Fix form reset logic - #186

Merged
lstein merged 3 commits into
mainfrom
reset-properly
Aug 29, 2022
Merged

Fix form reset logic#186
lstein merged 3 commits into
mainfrom
reset-properly

Conversation

@bakkot

@bakkot bakkot commented Aug 29, 2022

Copy link
Copy Markdown
Contributor

The .reset() method used prior to 18899be wasn't working because there was an input named "reset", which was shadowing the actual method. Doing a full reload is annoying because it loses your prompt and previously-generated images, which is unexpected (at least to me). Also, some browsers remember form inputs during a reload, which makes the button not serve its actual purpose.

First two commits are just fixing the whitespace - one to get rid of some tabs, the other to replace CRLFs with LFs. Third commit has the actual fix.

Fixes #185.

@lstein lstein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry - this patches fixes the CRLF issues? Thanks for that. Will revise my review.

@lstein

lstein commented Aug 29, 2022

Copy link
Copy Markdown
Collaborator

Since @bakkot is now officially a collaborator, and the changes are not so extensive, I'm going to go ahead and merge without the second review.

@lstein
lstein merged commit 132d23e into main Aug 29, 2022
@lstein
lstein deleted the reset-properly branch August 29, 2022 17:03
austinbrown34 pushed a commit to cognidesign/InvokeAI that referenced this pull request Dec 30, 2022
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.

"Reset to Defaults" on dream web doesn't do anything

2 participants