nhn / toast-ui.vue-image-editor

Toast UI Image Editor for Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When textstyle fill is set to the actual one, the whole style gets reset

yennor opened this issue · comments

Version

3.14.3

Current Behavior

When you set the text style of a textobject to the same fill color it already has, the color and other styles will be reset.
For whatever reason that doesn't happen when you set the text size to the same again.
Following line in tui-image-editor.js is responsible for it:

          if (activeObj[key] === val && key !== 'fontSize') {
            styleObj[key] = resetStyles[key] || '';
          }

Expected Behavior

When you set the text fill color to the same as already is set nothing should change at all.