mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: step=any
This commit is contained in:
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) }}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user