Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React UI: Attribute annotation mode #1255

Merged
merged 18 commits into from
Mar 17, 2020
Merged
Prev Previous commit
Next Next commit
Fixed condition when validate number attribute
  • Loading branch information
bsekachev committed Mar 13, 2020
commit 1d33ce07c282c2308a7eaa66c98c4914fe4efb1d
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ function renderInputElement(parameters: InputElementParameters): JSX.Element {
if (!Number.isNaN(numberValue)) {
const isValid = numberValue >= +values[0]
&& numberValue <= +values[1]
&& !(numberValue % +values[2]);
&& !((numberValue - +values[0]) % +values[2]);
if (isValid) {
onChange(value);
}