提交 fd7f1e5f 编写于 作者: B Benjamin Pasero

Cannot read property 'style' of null (fixes #28984)

上级 5a4d663f
...@@ -208,9 +208,11 @@ export class FeedbackDropdown extends Dropdown { ...@@ -208,9 +208,11 @@ export class FeedbackDropdown extends Dropdown {
$form.style('background-color', colors.editorWidgetBackground); $form.style('background-color', colors.editorWidgetBackground);
$form.style('box-shadow', colors.widgetShadow ? `0 2px 8px ${colors.widgetShadow}` : null); $form.style('box-shadow', colors.widgetShadow ? `0 2px 8px ${colors.widgetShadow}` : null);
this.feedbackDescriptionInput.style.backgroundColor = colors.inputBackground; if (this.feedbackDescriptionInput) {
this.feedbackDescriptionInput.style.color = colors.inputForeground; this.feedbackDescriptionInput.style.backgroundColor = colors.inputBackground;
this.feedbackDescriptionInput.style.border = `1px solid ${colors.inputBorder || 'transparent'}`; this.feedbackDescriptionInput.style.color = colors.inputForeground;
this.feedbackDescriptionInput.style.border = `1px solid ${colors.inputBorder || 'transparent'}`;
}
$contactUs.style('background-color', colors.editorBackground); $contactUs.style('background-color', colors.editorBackground);
$contactUs.style('border', `1px solid ${colors.contrastBorder || 'transparent'}`); $contactUs.style('border', `1px solid ${colors.contrastBorder || 'transparent'}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册