Skip to content

Commit

Permalink
Merge pull request #470 from Esri/hotfix/add-option-to-pass-onrequest…
Browse files Browse the repository at this point in the history
…close-to-arcgisaccount

Hotfix - Add option to pass onRequestClose to ArcgisAccount
  • Loading branch information
LeviRemi authored May 7, 2021
2 parents 42d7047 + 3038b05 commit 5306ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ArcgisAccount/ArcgisAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class ArcgisAccount extends Component {
token,
onRequestSwitchAccount,
onRequestSignOut,
onRequestClose,
children,
hideSwitchAccount,
switchAccountLabel,
Expand All @@ -120,7 +121,9 @@ class ArcgisAccount extends Component {
/>
}
open={this.state.open}
onRequestClose={this.closeAccountControl}
onRequestClose={() => {
onRequestClose ? onRequestClose(this.closeAccountControl) : this.closeAccountControl()
}}
placement="bottom-end"
positionFixed
appendToBody={appendToBody}
Expand Down

0 comments on commit 5306ed8

Please sign in to comment.