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: changing font size when text is not selected or edited #4751

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

h7y
Copy link
Member

@h7y h7y commented Feb 8, 2022

fixes #4743

@vercel
Copy link

vercel bot commented Feb 8, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/excalidraw/excalidraw/DDKTv7Y1n9Vr8KN3GpJxyUViALbK
✅ Preview: https://excalidraw-git-fix-font-size-update-excalidraw.vercel.app

@dwelle
Copy link
Member

dwelle commented Feb 8, 2022

We should actually only use the fallback value when not incrementing/decrementing, as the value is undefined in those cases.

I've also added a test case for this fix.

We're good to go, thanks! ❤️

@dwelle dwelle enabled auto-merge (squash) February 8, 2022 21:17
@dwelle dwelle merged commit d27b3bb into master Feb 8, 2022
@dwelle dwelle deleted the fix-font-size-update branch February 8, 2022 21:18
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.

Unable to change text size unless it's being edited or selected
2 participants