mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
fix one line interpretation
This commit is contained in:
parent
1dc76e0519
commit
d092310498
@ -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