fix one line interpretation

This commit is contained in:
Ali Abid 2020-09-24 09:27:50 -07:00
parent 1dc76e0519
commit d092310498
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,8 @@ const textbox_input = {
if (opts.lines > 1) {
this.target.find(".input_text").attr("rows", opts.lines).css("height", "auto");
} else {
this.target.html(this.one_line_html);
this.target.find("textarea").remove();
this.target.prepend(this.one_line_html);
}
if (opts.placeholder) {
this.target.find(".input_text").attr("placeholder", opts.placeholder)

View File

@ -8,7 +8,8 @@ const textbox_input = {
if (opts.lines > 1) {
this.target.find(".input_text").attr("rows", opts.lines).css("height", "auto");
} else {
this.target.html(this.one_line_html);
this.target.find("textarea").remove();
this.target.prepend(this.one_line_html);
}
if (opts.placeholder) {
this.target.find(".input_text").attr("placeholder", opts.placeholder)