Skip to content

Commit e3fde1f

Browse files
authored
Merge pull request #9 from moxie-lean/fix-none-form
Fix issue for none option
2 parents c14d3d0 + da7d8da commit e3fde1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Select_Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected static function select( $forms, $field ) {
3434
self::option([
3535
'value' => $form['id'],
3636
'label' => $form['title'],
37-
'selected' => $selection === $form['id'],
37+
'selected' => absint( $form['id'] ) === $selection,
3838
]);
3939
}
4040
?>

0 commit comments

Comments
 (0)