Skip to content

Commit

Permalink
Fix incorrectly added outline to the entered text
Browse files Browse the repository at this point in the history
Fix #189
  • Loading branch information
crmtestresco committed Oct 18, 2023
1 parent d202116 commit 180c48d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export default class TextTool {

apply() {
const origBorder = this.input.style.border;
const origOutline = this.input.style.outline;
const scale = this.main.getScale();
this.input.style.border = 'none';
domtoimage.toPng(this.input, {
Expand All @@ -218,6 +219,7 @@ export default class TextTool {
img.onload = () => {
this.ctx.drawImage(img, this.scaledCord[0], this.scaledCord[1]);
this.input.style.border = origBorder;
this.input.style.outline = origOutline;
this.close();
this.main.worklog.captureState();
this.main.closeActiveTool();
Expand Down

0 comments on commit 180c48d

Please sign in to comment.