ui: step=any

This commit is contained in:
undefined committed 2021-08-13 17:09:10 +08:00
1 parent 0c7745d435
commit cabd3b44f9
10 files changed
+47 -33

No files matched your search

@@ -152,9 +152,10 @@
{{ container_attr('textbox-container', args) }}
>
<input
type="{{ args.type or 'text' }}"
type="{{ 'number' if args.type === 'float' else args.type|default('text') }}"
name="{{ args.name }}"
value="{{ args.value }}"
{% if args.type === 'float' %} step="any"{% endif %}
placeholder="{{ args.placeholder }}"
{{ form_attr('textbox', args) }}
>