mirror of https://github.com/zulip/zulip.git
c7b12c996c
This contains two more complex changes: - The default versions of sorter and matcher assume that ItemType is a string. But the Typeahead class works on a generic ItemType and I'm not aware of a way to assert that this function is only called for typeaheads with string items. For `matcher`, we can assert that the items are strings. `sorter` is now a required option instead of an optional one that could fall back to the default. - `element` can be either an `input` element or a `contenteditable` `div`. We distinguish between them using `.is("[contenteditable]"))` but TypeScript doesn't understand that. So we replaced `this.$element` with `this.input_element` where `input_element` is an object with the `$element` and also a `type` specifying which type of element it is (input or contenteditable). |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
server | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |