Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
input pill: Backspace deletes pills if caret is at start of input.
Ryan Rehmanb57ebe717eff
diff --git a/static/js/input_pill.js b/static/js/input_pill.jsindex 41b299f463c..b5cb93246be 100644--- a/static/js/input_pill.js+++ b/static/js/input_pill.js@@ -266,7 +266,8 @@ exports.create = function (opts) {// if the user backspaces and there is input, just do normal char// deletion, otherwise delete the last pill in the sequence.- if (char === KEY.BACKSPACE && funcs.value(e.target).length === 0) {+ if (char === KEY.BACKSPACE && (+ funcs.value(e.target).length === 0 || window.getSelection().anchorOffset === 0)) {e.preventDefault();funcs.removeLastPill();