Skip to content

Commit 0ce6d17

Browse files
authored
fix: prompt leakage (#338)
1 parent aa4a628 commit 0ce6d17

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/helper/Prompt.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ class PromptWithoutStyles extends React.Component<Props, State> {
6767
}
6868

6969
public static show(options: Options) {
70-
this.component.setState({...options, shown: true});
70+
this.component.setState({title: options.title,
71+
button1: options.button1,
72+
button1Callback: options.button1Callback,
73+
button2: options.button2,
74+
button2Callback: options.button2Callback,
75+
message: options.message,
76+
shown: true,
77+
});
7178
}
7279
}
7380
export const PromptUtil = {

0 commit comments

Comments
 (0)