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: Keep comment edits when textarea loses focus #443

Merged
merged 3 commits into from Jun 13, 2023

Conversation

MikeJeffers
Copy link
Contributor

Fixes: #441

This PR is a proposed fix for the linked issue by not reverting the text-state onBlur callbacks. This achieves parity with the card Add/Edit description functionality where the "Save" button remains visible with the same focus/blur actions.

@CLAassistant
Copy link

CLAassistant commented May 25, 2023

CLA assistant check
All committers have signed the CLA.

@meltyshev
Copy link
Member

Hi! Thanks for this fix. I'm wondering if it would be better to save the changes instead of just prevent closing? Thought about what if I accidentally close the entire modal.

@MikeJeffers
Copy link
Contributor Author

Hi! Thanks for this fix. I'm wondering if it would be better to save the changes instead of just prevent closing? Thought about what if I accidentally close the entire modal.

Sure! Happy to contribute. Latest changes supports this. Changes persist on blur and modal close (by exit 'X' button and click outside of modal).

@meltyshev meltyshev merged commit 4c4cfa9 into plankanban:master Jun 13, 2023
1 check passed
@meltyshev
Copy link
Member

Thank you! I apologize for the delay in responding. For some reason I missed this PR 🙈

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.

[Bug?] Changes to comments will be lost when comment box loses focus
3 participants