Skip to content
Snippets Groups Projects
Unverified Commit c92b606d authored by Aleksander Nicacio da Silva's avatar Aleksander Nicacio da Silva Committed by GitHub
Browse files

regression: Opening the dial pad crashes the GUI (#29670)

parent 5688ff6c
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,9 @@ export const useDialModal = (): DialModalControls => {
}
setModal(
<Suspense fallback={null}>
// TODO: Revisit Modal's FocusScope which currently does not accept null as children.
// Added dummy div fallback for that reason.
<Suspense fallback={<div />}>
<DialPadModal initialValue={initialValue} errorMessage={errorMessage} handleClose={closeDialModal} />
</Suspense>,
);
......
......@@ -45,7 +45,7 @@ export const useDialPad = ({ initialValue, initialErrorMessage }: DialPadProps):
const { ref, onChange } = register('PhoneInput');
const value = watch('PhoneInput');
const value = watch('PhoneInput', '');
const [disabled, setDisabled] = useState(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment