From e8af9f93ec0e08b9dd92ad6d20d5adaf3c192541 Mon Sep 17 00:00:00 2001 From: chiayin Date: Mon, 4 Mar 2024 17:19:17 +0800 Subject: [PATCH] fix: Issues #223 done. --- src/module/alertModal.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/module/alertModal.js b/src/module/alertModal.js index c712de7..0acde4c 100644 --- a/src/module/alertModal.js +++ b/src/module/alertModal.js @@ -25,6 +25,9 @@ export async function saveFilter(addFilterId) { input: 'text', inputPlaceholder: 'Enter Filter Name.', inputValue: fileName, + inputAttributes: { + 'maxlength': 200, + }, inputValidator: (value) => { if (!value) return 'You need to write something!'; fileName = value; @@ -109,6 +112,9 @@ export async function saveConformance(addConformanceCreateCheckId) { input: 'text', inputPlaceholder: 'Enter Rule Name.', inputValue: fileName, + inputAttributes: { + 'maxlength': 200, + }, inputValidator: (value) => { if (!value) return 'You need to write something!'; fileName = value; @@ -307,6 +313,9 @@ export async function renameModal(rename, type, id, baseName) { input: 'text', inputPlaceholder: 'Enter File Name.', inputValue: fileName, + inputAttributes: { + 'maxlength': 200, + }, inputValidator: value => { if(!value) return 'You need to write something!'; fileName = value;