Commit fecf841
committed
minor symfony#9892 Use <button> instead of <a> for JavaScript interactive buttons (Calinou)
This PR was merged into the 2.8 branch.
Discussion
----------
Use <button> instead of <a> for JavaScript interactive buttons
This removes the need to call `preventDefault()` to disable the default action of `<a>` elements, since `<button type="button">` has no default action whatsoever.
See also [this Stack Overflow question](https://stackoverflow.com/questions/469059/button-vs-input-type-button-which-to-use) about the `<button>` HTML tag.
Commits
-------
87db1b6 Use <button> instead of <a> for JavaScript interactive buttonsFile tree
2 files changed
+8
-15
lines changed- form
- reference/forms/types
2 files changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
| 356 | + | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 370 | + | |
374 | 371 | | |
375 | 372 | | |
376 | 373 | | |
| |||
619 | 616 | | |
620 | 617 | | |
621 | 618 | | |
622 | | - | |
| 619 | + | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
| |||
651 | 648 | | |
652 | 649 | | |
653 | 650 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 651 | + | |
| 652 | + | |
660 | 653 | | |
| 654 | + | |
661 | 655 | | |
662 | 656 | | |
663 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
| 213 | + | |
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
| |||
0 commit comments