fix bug where font family select doesn't update the Top Panel dropdown (#853) (#856)

master
bluetwelve 2022-11-28 11:57:12 -05:00 committed by GitHub
parent 00a7d61122
commit bb3a9b105f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -370,10 +370,7 @@ class TopPanel {
$id(
'tool_text_decoration_overline'
).pressed = this.editor.svgCanvas.hasTextDecoration('overline')
$id('tool_font_family').setAttribute(
'value',
elem.getAttribute('font-family')
)
$id('tool_font_family').value = elem.getAttribute('font-family')
$id('tool_text_anchor').setAttribute(
'value',
elem.getAttribute('text-anchor')