You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Components now accept HTML attributes directly as keyword arguments
instead of requiring the `attributes:` wrapper. The old `attributes:`
style still works but emits a deprecation warning.
Before: MyInput.new(field, attributes: { class: "foo" })
After: MyInput.new(field, class: "foo")
Copy file name to clipboardExpand all lines: CHANGELOG.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,37 @@
1
1
## [Unreleased]
2
2
3
+
### Changed
4
+
5
+
-**Deprecation**: Components now accept HTML attributes as keyword arguments directly instead of wrapping them in `attributes:`. The old `attributes:` keyword still works but emits a deprecation warning and will be removed in a future version.
0 commit comments