OptionWriter renders item Maps incorrectly (no preselection) [SPR-4385] #9064
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Benjamin Hoffmann opened SPR-4385 and commented
When rendering an Option, renderFromMap() passes the HashMap Entry to the renderOption Method instead of the keyObject itself.
The renderOption Method compares the item as well as the textual representation to determine the selection state of the specific option. The MapEntry will never match in this case, so the mapEntry.getKey() should be passed to renderOption instead.
Affects: 2.0.8, 2.5.1
Issue Links:
Backported to: 2.0.9
The text was updated successfully, but these errors were encountered: