Skip to content

Commit

Permalink
Removed a hard match check in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge1i0N committed Feb 22, 2023
1 parent dad817b commit f88c0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function getOptionsHtml($options = [], $value = null): string
$string = '';
if (!empty($options))
foreach ($options as $option) {
$selected = (!is_null($value) && $option['VALUE'] === $value) ? 'selected' : '';
$selected = (!is_null($value) && $option['VALUE'] == $value) ? 'selected' : '';
$string .= '<option value="' . $option['VALUE'] . '"' . $selected . '>' . $option['TITLE'] . '</option>';
}

Expand Down

0 comments on commit f88c0be

Please sign in to comment.