Skip to content

Commit

Permalink
use full attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Jun 26, 2023
1 parent 162cadf commit 33990f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Forms/SelectField.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,16 +292,16 @@ public function OptionsHTML(): string
foreach ($source as $value => $title) {
$selected = '';
if ($this->isSelectedValue($value, $currentValue)) {
$selected = ' selected';
$selected = ' selected="selected"';
}
$disabled = '';
if ($this->isDisabledValue($value) && $title != $emptyString) {
$disabled = ' disabled';
$disabled = ' disabled="disabled"';
}
$item = '<option value="' . Convert::raw2xml($value) . '"' . $selected . $disabled . '>' . Convert::raw2xml($title) . '</option>';
$options[] = $item;
}

return implode("\n", $options);
}
}

0 comments on commit 33990f5

Please sign in to comment.