mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Demos: Autocomplete, multiple: scroll input to the right on addition
Exposes the last added item in narrow <input> containers.
This commit is contained in:
parent
74f8a0ac95
commit
6b956c336c
@ -67,6 +67,8 @@
|
|||||||
// add placeholder to get the comma-and-space at the end
|
// add placeholder to get the comma-and-space at the end
|
||||||
terms.push( "" );
|
terms.push( "" );
|
||||||
this.value = terms.join( ", " );
|
this.value = terms.join( ", " );
|
||||||
|
// scroll input viewport to as far right as possible
|
||||||
|
this.selectionStart = this.selectionEnd = this.value.length;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user