diff --git a/core-bundle/src/Resources/contao/forms/FormTextField.php b/core-bundle/src/Resources/contao/forms/FormTextField.php
index <HASH>..<HASH> 100644
--- a/core-bundle/src/Resources/contao/forms/FormTextField.php
+++ b/core-bundle/src/Resources/contao/forms/FormTextField.php
@@ -136,6 +136,12 @@ class FormTextField extends \Widget
 			{
 				case 'digit':
 					$strType = 'number';
+
+					// Allow floats (see #7257)
+					if (!isset($this->arrAttributes['step']))
+					{
+						$this->addAttribute('step', 'any');
+					}
 					break;
 
 				case 'phone':
[Core] Allow floating point numbers in "number" input fields (see #<I>)