Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

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

@yennor

Description

@yennor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions