From c0b19e33e584a62767e692ad81f30fb16eb4ff33 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 12 Dec 2024 09:16:17 -0600 Subject: [PATCH] Add an `li` around the `button` options in the drop down menu. Otherwise it is invalid html. --- macros/parsers/parserPopUp.pl | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/macros/parsers/parserPopUp.pl b/macros/parsers/parserPopUp.pl index 1c1e9d928..ad194a216 100644 --- a/macros/parsers/parserPopUp.pl +++ b/macros/parsers/parserPopUp.pl @@ -478,13 +478,16 @@ sub MENU { '', map { main::tag( - 'button', - class => 'dropdown-item' - . ($self->{values}[$_] eq $answer_value ? ' active' : ''), - type => 'button', - data_value => $self->{values}[$_], - data_content => $self->{labels}[$_], - $self->{labels}[$_] + 'li', + main::tag( + 'button', + class => 'dropdown-item' + . ($self->{values}[$_] eq $answer_value ? ' active' : ''), + type => 'button', + data_value => $self->{values}[$_], + data_content => $self->{labels}[$_], + $self->{labels}[$_] + ) ) } (0 .. $#list) )