LearnNewsExamplesServices
Frontmatter
id4198
titleform.field.Number: stepSize => support for values < 1
stateClosed
labels
bug
assigneestobiu
createdAtMar 23, 2023, 9:19 AM
updatedAtMar 23, 2023, 11:47 AM
githubUrlhttps://github.com/neomjs/neo/issues/4198
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 23, 2023, 11:47 AM

form.field.Number: stepSize => support for values < 1

Closed v8.1.0 bug
tobiu
tobiu commented on Mar 23, 2023, 9:19 AM

we need to use Math.round() to ensure to get reasonable values when using the spin buttons.

tobiu added the bug label on Mar 23, 2023, 9:19 AM
tobiu assigned to @tobiu on Mar 23, 2023, 9:19 AM
tobiu referenced in commit d33f098 - "form.field.Number: stepSize => support for values < 1 #4198 => test case" on Mar 23, 2023, 9:20 AM
tobiu referenced in commit 9eaac23 - "form.field.Number: stepSize => support for values < 1 #4198" on Mar 23, 2023, 10:14 AM
tobiu
tobiu Mar 23, 2023, 11:01 AM

tested this with a stepSize of 0.01 and 0.001 and seems to work fine now. i will cache the amount of digits to reduce run-time calculations next.

tobiu referenced in commit 3500294 - "#4198 caching the amount of stepSize digits" on Mar 23, 2023, 11:43 AM
tobiu closed this issue on Mar 23, 2023, 11:47 AM