Skip to content

Commit

Permalink
$mol_number fix negative value
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 25, 2024
1 parent bd600bd commit 7fee620
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion number/number.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ namespace $.$$ {

// Если пустая строка - сетим NaN
// Применяем округления.
return this.round( this.value_limited(Number(next || Number.NaN)) )
this.value_limited(Number(next || Number.NaN))

// Возвращаем все-равно не нормализованное значение
// Иначе нельзя ввести будет 10, если min/max 5..10
return next
}

@ $mol_mem
Expand Down

0 comments on commit 7fee620

Please sign in to comment.