Skip to content

Commit

Permalink
enforce close if callback option.close is called, no matter if dialog…
Browse files Browse the repository at this point in the history
… is closable
  • Loading branch information
10xSebastian committed Jun 10, 2021
1 parent 5ba7c3d commit a5d1dc7
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 333 deletions.
116 changes: 61 additions & 55 deletions dist/cjs/index.bundle.js

Large diffs are not rendered by default.

116 changes: 61 additions & 55 deletions dist/cjs/index.js

Large diffs are not rendered by default.

116 changes: 61 additions & 55 deletions dist/es/index.bundle.js

Large diffs are not rendered by default.

116 changes: 61 additions & 55 deletions dist/es/index.js

Large diffs are not rendered by default.

116 changes: 61 additions & 55 deletions dist/umd/index.bundle.js

Large diffs are not rendered by default.

116 changes: 61 additions & 55 deletions dist/umd/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "depay-widgets",
"moduleName": "DePayWidgets",
"version": "1.8.0",
"version": "1.8.1",
"description": "Accept and perform crypto payments with DePay. Decentralized payment widgets that simplify crypto payments.",
"main": "./dist/cjs/index.js",
"files": [
Expand Down
10 changes: 8 additions & 2 deletions src/dialogs/PaymentDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ class PaymentDialog extends React.Component {
token: route[route.length-1],
from: from,
nonce: transaction.nonce,
close: dialogContext.closeContainer
close: function(){
dialogContext.setClosable(true)
dialogContext.closeContainer()
}
});
}
dialogContext.setClosable(false);
Expand All @@ -189,7 +192,10 @@ class PaymentDialog extends React.Component {
amount: amountOut,
token: route[route.length-1],
from: from,
close: dialogContext.closeContainer
close: function(){
dialogContext.setClosable(true)
dialogContext.closeContainer()
}
});
}
}, 100)
Expand Down

0 comments on commit a5d1dc7

Please sign in to comment.