Skip to content

Commit

Permalink
Omgå bug i Modal fra designsystemet
Browse files Browse the repository at this point in the history
Modal forventer at onRequestClose skal være en definert funksjon. Det lar seg
ikke gjøre å lukke modalen ved å klikke utenfor modalen uten denne.
  • Loading branch information
havstein committed Aug 6, 2019
1 parent 63d39b8 commit 19b32ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/widgets/modal/ErrorModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const ErrorModal = ({ errorMessage, onClose }) => (
isOpen={true}
contentLabel="Feilmelding"
closeButton={false}
onRequestClose={onClose || (() => {})}
>
<Systemtittel>Det har oppstått en feil</Systemtittel>
<Normaltekst>{errorMessage}</Normaltekst>
Expand Down

0 comments on commit 19b32ca

Please sign in to comment.