Skip to content

Commit

Permalink
remove <br/> placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 14, 2024
1 parent 3297656 commit ee7017e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -2112,8 +2112,7 @@
var clip;
if (is_mobile) {
clip = (function() {
var html = '<div class="cmd-editable" contenteditable><br/></div>';
var $node = $(html).attr({
var $node = $('<div class="cmd-editable" contenteditable/>').attr({
autocapitalize: 'off',
autocorrect: 'off',
autocomplete: 'new-password',
Expand All @@ -2131,8 +2130,6 @@
val: function(value) {
if (typeof value === 'undefined') {
return $node.text();
} else if (value === '') {
$node.html('<br/>');
} else {
$node.html(value);
}
Expand Down

0 comments on commit ee7017e

Please sign in to comment.