mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
fix one line interpretation
This commit is contained in:
parent
b3b5a76706
commit
6c941cd661
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user