fix MultiLineTextInput

This commit is contained in:
Aran-Fey
2024-07-02 08:45:23 +02:00
parent 82f4cdb039
commit 9126efacd2
5 changed files with 162 additions and 157 deletions

View File

@@ -21,11 +21,10 @@ export class TextInputComponent extends ComponentBase {
private onChangeLimiter: Debouncer;
createElement(): HTMLElement {
// Create the element
let element = document.createElement('div');
element.classList.add('rio-text-input');
this.inputBox = new InputBox();
this.inputBox = new InputBox(element);
let element = this.inputBox.outerElement;
element.classList.add('rio-text-input');
// Create a rate-limited function for notifying the backend of changes.
// This allows reporting changes to the backend in real-time, rather