Skip to content

Commit ebe4823

Browse files
Belhassennicolas-grekas
authored andcommitted
Fix MoneyType: add missing step attribute when html5=true
1 parent 9d13e87 commit ebe4823

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Tests/Extension/FormExtensionBootstrap3LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testMoneyWidgetInIso()
7171
$this->assertSame(<<<'HTML'
7272
<div class="input-group">
7373
<span class="input-group-addon">&euro; </span>
74-
<input type="text" id="name" name="name" required="required" class="form-control" /> </div>
74+
<input type="text" id="name" name="name" required="required" inputmode="decimal" class="form-control" /> </div>
7575
HTML
7676
, trim($this->renderWidget($view)));
7777
}

Tests/Extension/FormExtensionBootstrap4LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testMoneyWidgetInIso()
7676
$this->assertSame(<<<'HTML'
7777
<div class="input-group "><div class="input-group-prepend">
7878
<span class="input-group-text">&euro; </span>
79-
</div><input type="text" id="name" name="name" required="required" class="form-control" /></div>
79+
</div><input type="text" id="name" name="name" required="required" inputmode="decimal" class="form-control" /></div>
8080
HTML
8181
, trim($this->renderWidget($view)));
8282
}

Tests/Extension/FormExtensionBootstrap5LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testMoneyWidgetInIso()
7575
->createView();
7676

7777
self::assertSame(<<<'HTML'
78-
<div class="input-group "><span class="input-group-text">&euro; </span><input type="text" id="name" name="name" required="required" class="form-control" /></div>
78+
<div class="input-group "><span class="input-group-text">&euro; </span><input type="text" id="name" name="name" required="required" inputmode="decimal" class="form-control" /></div>
7979
HTML
8080
, trim($this->renderWidget($view)));
8181
}

Tests/Extension/FormExtensionDivLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testMoneyWidgetInIso()
156156
->createView()
157157
;
158158

159-
$this->assertSame('&euro; <input type="text" id="name" name="name" required="required" />', $this->renderWidget($view));
159+
$this->assertSame('&euro; <input type="text" id="name" name="name" required="required" inputmode="decimal" />', $this->renderWidget($view));
160160
}
161161

162162
public function testHelpAttr()

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"symfony/asset-mapper": "^6.3|^7.0",
3030
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
3131
"symfony/finder": "^5.4|^6.0|^7.0",
32-
"symfony/form": "^6.4.20|^7.2.5",
32+
"symfony/form": "^6.4.30|^7.3.8|^7.4.1",
3333
"symfony/html-sanitizer": "^6.1|^7.0",
3434
"symfony/http-foundation": "^5.4|^6.0|^7.0",
3535
"symfony/http-kernel": "^6.4|^7.0",
@@ -58,7 +58,7 @@
5858
"phpdocumentor/reflection-docblock": "<3.2.2",
5959
"phpdocumentor/type-resolver": "<1.4.0",
6060
"symfony/console": "<5.4",
61-
"symfony/form": "<6.3",
61+
"symfony/form": "<6.4",
6262
"symfony/http-foundation": "<5.4",
6363
"symfony/http-kernel": "<6.4",
6464
"symfony/mime": "<6.2",

0 commit comments

Comments
 (0)