Dropdown not displaying selected option

This issue has been tracked since 2022-01-06.

My dropdown is not displaying the selected option.

<EmailEditor projectId={55576} ref={this.emailEditorRef} onLoad={() => setTimeout(() => this.onLoad(), 0)} options={{ customJS: [
unlayer.registerTool({
name: 'question_tool',
label: 'Question',
icon: 'fa-question',
supportedDisplayModes: ['web', 'email'],
options: {
questions: {
title: 'Choose a question',
options:{
questions: {
name: 'question',
label: 'Question list',
defaultValue: '#1',
widget: 'dropdown',
}
}
},
},
values: {},
renderer: {
Viewer: unlayer.createViewer({
render(values) {
return values.data.value
},
}),
exporters: {
web(values) {
return values.data.value
},
email(values) {
return values.data.value
},
head: {
css: function (values) {},
js: function (values) {},
},
},
},
});
], }} onReady={this.onReady} appearance={{ theme: 'dark', }} tools={{ 'custom#question_tool': { data: { value: 'Select a question', }, properties: { questions: { editor: { data: { options: [ { label: 'Question 1', value: '#1' }, { label: 'Question 2', value: '#2' }, { label: 'Question 3', value: '#3' }, { label: 'Question 4', value: '#4' }, ], }, }, }, }, }, }} />

More Details About Repo
Owner Name unlayer
Repo Name react-email-editor
Full Name unlayer/react-email-editor
Language JavaScript
Created Date 2017-10-01
Updated Date 2022-12-05
Star Count 3598
Watcher Count 48
Fork Count 627
Issue Count 163

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date