mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
input-pill: Have all clicks directly on container focus input.
If a user clicks on the pill container and not directly on a pill or on an "x" inside of a pill, it should be presumed they are trying to input new text. This effectively makes the whole non-pill section an input bar.
This commit is contained in:
committed by
Tim Abbott
parent
7b00736fa2
commit
93141cbe39
@@ -254,6 +254,12 @@ var input_pill = function ($parent) {
|
||||
funcs.removePill(id);
|
||||
$next.focus();
|
||||
});
|
||||
|
||||
store.$parent.on("click", function (e) {
|
||||
if ($(e.target).is(".pill-container")) {
|
||||
$(this).find(".input").focus();
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
// the external, user-accessible prototype.
|
||||
|
||||
Reference in New Issue
Block a user