-
-
Notifications
You must be signed in to change notification settings - Fork 145
Fix display of ConfirmDialogProvider if not used in a callback. #241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a test for the non-callback functionality is warranted? If we can't use Percy to snapshot Dialogues perhaps some sort of unit test will suffice.
this.state = { | ||
displayed: props.displayed | ||
}; | ||
this._setStateAndProps = this._setStateAndProps.bind(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see _setStateAndProps being passed as a callback anywhere so this .bind() isn't necessary?
}; | ||
this._setStateAndProps = this._setStateAndProps.bind(this); | ||
this._update = this._update.bind(this); | ||
// this._update(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚡️
9015d91
to
a6b0278
Compare
@T4rk1n are you planning on adding tests to this one as per @bpostlethwaite 's recommendation? Or are confirm dialog tests too hard to add with selenium? Also, does this fix #242? This PR is blocking the documentation https://github.com/plotly/dash-docs/pull/123, so it'd be good to get it in soon 😺 |
💃 thanks! |
0f96813
to
1c9fd82
Compare
Fix #242.