Skip to content

Commit df76a86

Browse files
committed
fixed bug where if backgroundColors initial value was not set
1 parent 43e0326 commit df76a86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SketchField.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ class SketchField extends PureComponent {
453453

454454
this._initTools(canvas);
455455

456+
// set initial backgroundColor
457+
this._backgroundColor(this.prop.backgroundColor)
458+
456459
let selectedTool = this._tools[tool];
457460
selectedTool.configureCanvas(this.props);
458461
this._selectedTool = selectedTool;

0 commit comments

Comments
 (0)