Bug description
In forms, Integer fields are rendered as <input type="text"> and allow text to be input (although ultimately, submitting the form will trigger an error XXX field must be an integer).
It does not make much sense since Text fields with Input type = number are rendered as <input type="number">.
How to reproduce
Simply create a form with a text field, setting its input type to number and an integer field and open the form in the front end.
Logs
No response
Environment
EnvironmentApplication Name: StatamicLaravel Version: 11.30.0PHP Version: 8.3.13Composer Version: 2.7.7Environment: localDebug Mode: ENABLEDURL: gaia-hub.testMaintenance Mode: OFFTimezone: UTCLocale: enCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: mysqlLogs: stack / singleMail: logQueue: syncSession: fileStatamicAddons: 3Sites: 1Stache Watcher: Enabled (auto)Static Caching: DisabledVersion: 5.36.0 PROStatamic Addonsalt-design/alt-seo: 1.2.1jacksleight/statamic-bard-mutator: 3.0.3statamic/eloquent-driver: 4.16.1Statamic Eloquent DriverAsset Containers: fileAssets: fileBlueprints: fileCollection Trees: fileCollections: fileEntries: eloquentForms: fileGlobal Sets: fileGlobal Variables: fileNavigation Trees: fileNavigations: fileRevisions: fileSites: fileTaxonomies: fileTerms: fileTokens: file
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
In forms,
Integerfields are rendered as<input type="text">and allow text to be input (although ultimately, submitting the form will trigger an errorXXX field must be an integer).It does not make much sense since
Textfields with Input type =numberare rendered as<input type="number">.How to reproduce
Simply create a form with a text field, setting its input type to
numberand anintegerfield and open the form in the front end.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response