Skip to content

Commit

Permalink
Fix min, max, step bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge1i0N committed Mar 28, 2022
1 parent 7c00573 commit fe9919f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Types/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public function getHtml(): string
$disabled = $this->fields['DISABLED'] ? 'disabled' : '';
$readonly = $this->fields['READONLY'] ? 'readonly' : '';
$autocomplete = $this->fields['autocomplete'] ? 'on' : 'off';
$step = $this->fields['STEP'] ? htmlspecialchars($this->fields['STEP']) : 1;
$min = $this->fields['MIN'] ? htmlspecialchars($this->fields['MIN']) : '';
$max = $this->fields['MAX'] ? htmlspecialchars($this->fields['MAX']) : '';
$step = isset($this->fields['STEP']) ? htmlspecialchars($this->fields['STEP']) : 1;
$min = isset($this->fields['MIN']) ? htmlspecialchars($this->fields['MIN']) : '';
$max = isset($this->fields['MAX']) ? htmlspecialchars($this->fields['MAX']) : '';

return <<<HTML
<div id="{$name}-block" class="{$name}-raw">
Expand Down

0 comments on commit fe9919f

Please sign in to comment.