Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit 8134937

Browse files
committed
Merge pull request #577 from 2is10/input_width_zero
working around webkit bug where zero-area input loses focus
2 parents b180a31 + 9c0924b commit 8134937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ $.TokenList = function (input, url_or_data, settings) {
662662
}
663663

664664
// Squeeze input_box so we force no unnecessary line break
665-
input_box.width(0);
665+
input_box.width(1);
666666

667667
// Insert the new tokens
668668
if($(input).data("settings").tokenLimit == null || token_count < $(input).data("settings").tokenLimit) {

0 commit comments

Comments
 (0)