Skip to content

Commit

Permalink
Add an li around the button options in the drop down menu.
Browse files Browse the repository at this point in the history
Otherwise it is invalid html.
  • Loading branch information
drgrice1 committed Dec 18, 2024
1 parent c71b2a9 commit 2f8434a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions macros/parsers/parserPopUp.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 2f8434a

Please sign in to comment.