Skip to content

Commit

Permalink
[5.x] Integer fields should render with type="number" (#11065)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Nov 6, 2024
1 parent d8d09d1 commit ad32277
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions resources/views/extend/forms/fields/integer.antlers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<input
type="number"
name="{{ handle }}"
value="{{ value }}"
{{ if placeholder }}placeholder="{{ placeholder }}"{{ /if }}
{{ if character_limit }}maxlength="{{ character_limit }}"{{ /if }}
{{ if autocomplete }}autocomplete="{{ autocomplete }}"{{ /if }}
{{ if js_driver }}{{ js_attributes }}{{ /if }}
{{ if validate|contains:required }}required{{ /if }}
>

0 comments on commit ad32277

Please sign in to comment.