From 5b65a6bc7852dee203836a6cd7f418606cc9014b Mon Sep 17 00:00:00 2001 From: angelinazzz1809 Date: Thu, 7 May 2026 06:27:28 +0800 Subject: [PATCH] Update UIPrompt.js (#2930) In the app environment, the prompt input was initialized using `options.value`, so `defaultValue` was not reflected. This change ensures that `defaultValue` is used when provided, while keeping backward compatibility with `options.value`. --- src/gui/src/UI/UIPrompt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/UI/UIPrompt.js b/src/gui/src/UI/UIPrompt.js index 011010489..e271d5521 100644 --- a/src/gui/src/UI/UIPrompt.js +++ b/src/gui/src/UI/UIPrompt.js @@ -47,7 +47,7 @@ function UIPrompt (options) { h += `
${options.message}
`; // prompt h += '
'; - h += ``; + h += ``; h += '
'; // buttons if ( options.buttons && options.buttons.length > 0 ) { @@ -129,4 +129,4 @@ function UIPrompt (options) { }); } -export default UIPrompt; \ No newline at end of file +export default UIPrompt;