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 13, 2024
1 parent b278b20 commit c0b19e3
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 c0b19e3

Please sign in to comment.