Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-primitive numeric type default values
This change leans on the new ModuleService#getDefaultValue(ModuleItem) method, which is smarter about default value computation across the board. It avoids the pitfall of bounding min/max using the widget model's min and max -- which fall back to the numeric type's min/max values for the purposes of bounding the widget -- and instead uses the ModuleItem's stated min/max, or a default converted from "0" if none.
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters