Repository navigation
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). |
|
Ok, I agree that definition application order of modifiers seems much more clean and solid, while this is a specific case. |
Uh oh!
There was an error while loading. Please reload this page.
A possible "low-fruit" solution would be - add a
def priority: Int = 0to Modifier, and set it to higher invalueproperty.All reactions