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

This commit is contained in:
bluetwelve
2022-11-28 11:57:12 -05:00
committed by GitHub
parent 00a7d61122
commit bb3a9b105f

View File

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