Skip to content

Commit afe00b6

Browse files
author
Roman
committed
Select: Fixed a problem when displaying the selected option when the value is an object. See #59728
1 parent c4f7b28 commit afe00b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elements/Select/Select.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class CUI.Select extends CUI.Checkbox
226226
max_chars = null
227227

228228
for opt, idx in @__options
229-
if found_opt == null and opt.value == @getValue()
229+
if found_opt == null and CUI.util.isEqual(opt.value, @getValue())
230230
found_opt = opt
231231

232232
if opt.text?.length > max_chars

0 commit comments

Comments
 (0)