From a094b6ccaaee5c0b5997255b4190fec76d45599a Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Mon, 30 Sep 2024 14:47:32 +0530 Subject: [PATCH] Fix max image selection issue --- js/ppom.inputs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/ppom.inputs.js b/js/ppom.inputs.js index e3b63699..e389c267 100644 --- a/js/ppom.inputs.js +++ b/js/ppom.inputs.js @@ -180,9 +180,8 @@ function ppom_init_js_for_ppom_fields(ppom_fields) { return; } - const multiple = input.dataset.allowMultiple; - - if ( ! multiple ) { + const multiple = input.dataset.allowMultiple || false; + if ( multiple ) { if (input.dataset.required) { input.checked = true; }