mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Have the paint-editor container listen to selectedItems
This solves the issue of buttons not updating their disabled/enabled state until being dragged by making sure that a re-render occurs whenever a new item is selected, checking again for state.
This commit is contained in:
parent
128f9ca642
commit
2376a3ce63
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ PaintEditor.propTypes = {
|
|||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
selectedItems: state.scratchPaint.selectedItems,
|
||||
undoState: state.scratchPaint.undo
|
||||
});
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
|
|
Loading…
Reference in a new issue