Skip to content

Commit

Permalink
fix css property (#2411)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel authored Oct 9, 2023
1 parent e960efb commit f9733ae
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
function toggleQuickMenu() {
try {
if (value.style) {
parse(value.style)
isQuickMenuOpen = !isQuickMenuOpen
if (!value.style) {
value.style = ''
}
parse(value.style)
isQuickMenuOpen = !isQuickMenuOpen
} catch {
sendUserToast('Invalid CSS: Rich editor cannot be open', true)
sendUserToast('Invalid CSS: Rich editor cannot be toggled', true)
}
}
Expand Down

0 comments on commit f9733ae

Please sign in to comment.