Skip to content
Snippets Groups Projects
Commit aba118bc authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added configuration of decimals validation

parent 86777760
No related branches found
No related tags found
No related merge requests found
......@@ -312,7 +312,17 @@ var metawidget = metawidget || {};
} else if ( attributes.maximum !== undefined ) {
number.setAttribute( 'max', attributes.maximum );
}
if ( attributes.step !== undefined ) {
number.setAttribute( 'step', attributes.step );
}
else if (attributes.type === 'number'){
number.setAttribute( 'step', 'any' );
}
else {
number.setAttribute( 'step', '1' );
}
return number;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment