Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
It should be possible to set a default value for the space picker by setting the value attribute on the trigger element. However when you do this the space picker displays the value as blank.
It looks like this is caused by a simple JS bug. In initSelection.renderSpaces() a array of objects is passed into the callback. This value is eventually passed to the select2 formatSelection() function. This function works with an object, not an array. Changing the code in renderSpaces() to pass in an object should fix the bug.
Attachments
Issue Links
- relates to
-
CONFCLOUD-38504 Space picker shows blank text when default value is set
- Closed