Shouldn't Modifiers respect semantic order (i.e. priority)? #180
Replies: 2 comments
-
This particular problem with Currently Laminar follows the DOM spec on this, but as you discovered that's not very ergonomic. Theoretically we could do something smarter, or provide a custom API just for setting options+value, but I'm not yet sure what / how exactly. Implicitly reordering modifiers will not be enough to solve the dynamic-data aspects of #94, and I suspect would have other side effects (that will only crop up in weirdly specific edge cases, making them hard to figure out). |
Beta Was this translation helpful? Give feedback.
-
Ok, I agree that definition application order of modifiers seems much more clean and solid, while this is a specific case. |
Beta Was this translation helpful? Give feedback.
-
A possible "low-fruit" solution would be - add a
def priority: Int = 0
to Modifier, and set it to higher invalue
property.Beta Was this translation helpful? Give feedback.
All reactions