Skip to content

Combobox does not work if options contain double quotes (") #2940

@ceball

Description

@ceball

The second combobox doesn't offer any drop-down options:

combobox

Code to reproduce the above:

import ipywidgets
print(ipywidgets.__version__)
display(ipywidgets.Combobox(options=['OptionA','OptionB']))
display(ipywidgets.Combobox(options=['"Option A"','"Option B"']))

@vidartf pointed out the issue is here, with html escaping:

const optLines = opts.map(o => {
return `<option value="${o}"></option>`;
});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions