mirror of https://github.com/zulip/zulip.git
1676d0b638
Before this commit if a user pressed enter to submit the add emoji form the uploaded emoji was getting cleared. This was happening because when we pressed enter the browser tried to submit the form, because we had two buttons inside that form one for clearing uploaded emoji and one for uploading emoji they were being treated as "submit" button and hence their callback ran which in result was responsible for the bug. Fixed this by explicitly setting the `type` attribute for those buttons to `type=button` so that they will not be treated as "submit" button. Also added the `form_id` option for `dialog_widget` which is needed if we do want to correctly submit the form by pressing enter. Fixes: #24972 |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
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 |