0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

Remove wizard composer static id

This causes an issue if multiple composers are used in a single step
Dieser Commit ist enthalten in:
Angus McLeod 2020-09-21 15:36:11 +10:00
Ursprung 1f8f24804b
Commit fd0dfeae32
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -3,8 +3,7 @@ import EmberObject from "@ember/object";
export default Ember.Component.extend({ export default Ember.Component.extend({
showPreview: false, showPreview: false,
elementId: "reply-control", classNameBindings: [":wizard-field-composer", "showPreview:show-preview:hide-preview"],
classNameBindings: ["showPreview:show-preview:hide-preview"],
didInsertElement() { didInsertElement() {
this.set('composer', EmberObject.create({ this.set('composer', EmberObject.create({

Datei anzeigen

@ -42,11 +42,11 @@
} }
} }
#reply-control.show-preview .d-editor-textarea-wrapper { .wizard-field-composer.show-preview .d-editor-textarea-wrapper {
display: none; display: none;
} }
.custom-wizard #reply-control .toggle-preview { .custom-wizard .wizard-field-composer .toggle-preview {
margin-top: 20px; margin-top: 20px;
} }