fixing edgecase
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
type SwitchRotaryDialogPropsType = {
|
||||
open: boolean;
|
||||
isActive: boolean;
|
||||
switchMode: () => void;
|
||||
switchMode: (mode: boolean) => void;
|
||||
};
|
||||
|
||||
export function showDialog(
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
export let open: boolean;
|
||||
export let isActive: boolean;
|
||||
export let switchMode: () => any;
|
||||
export let switchMode: (mode: boolean) => any;
|
||||
</script>
|
||||
|
||||
<Dialog
|
||||
@@ -29,7 +29,7 @@
|
||||
<Label>No</Label>
|
||||
</Button>
|
||||
|
||||
<Button defaultAction use={[InitialFocus]} on:click={switchMode}>
|
||||
<Button defaultAction use={[InitialFocus]} on:click={() =>switchMode(isActive)}>
|
||||
<Label>Yes</Label>
|
||||
</Button>
|
||||
</Actions>
|
||||
|
||||
Reference in New Issue
Block a user