Skip to content

Commit

Permalink
BUGFIX: NodecreationDialog orange border when trying to escape with p…
Browse files Browse the repository at this point in the history
…ending changes
  • Loading branch information
mhsdesign committed Jul 12, 2023
1 parent 6d8d7a6 commit b117dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default class NodeCreationDialog extends PureComponent {
actions={[this.renderBackAction(), this.renderSaveAction()]}
title={this.renderTitle()}
onRequestClose={this.handleCancel}
preventClosing={true}
preventClosing={this.state.isDirty}
type="success"
isOpen
style={this.state.secondaryInspectorComponent ? 'jumbo' : 'wide'}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-ui-components/src/Dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class DialogWithOverlay extends PureComponent<DialogProps> {

const finalClassNameBody = mergeClassNames(
theme.dialog__body,
{
this.state.isShaking ? theme['dialog--warn'] : {
[theme['dialog--success']]: type === 'success',
[theme['dialog--warn']]: type === 'warn',
[theme['dialog--error']]: type === 'error',
Expand Down Expand Up @@ -201,7 +201,7 @@ class DialogWithOverlay extends PureComponent<DialogProps> {
[theme['dialog--jumbo']]: style === 'jumbo',
[theme['dialog--narrow']]: style === 'narrow',
},
{
this.state.isShaking ? theme['dialog--warn'] : {
[theme['dialog--success']]: type === 'success',
[theme['dialog--warn']]: type === 'warn',
[theme['dialog--error']]: type === 'error',
Expand Down

0 comments on commit b117dca

Please sign in to comment.