We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ec36f commit bc03770Copy full SHA for bc03770
packages/userscript/source/ui/components/UiComponent.ts
@@ -85,7 +85,7 @@ export abstract class UiComponent extends EventTarget {
85
86
static promptPercentage(text: string, defaultValue: string): number | null {
87
const value = window.prompt(text, defaultValue);
88
- if (value === null) {
+ if (value === null || value === "") {
89
return null;
90
}
91
@@ -111,7 +111,7 @@ export abstract class UiComponent extends EventTarget {
111
112
static promptFloat(text: string, defaultValue: string): number | null {
113
114
115
116
117
0 commit comments