zulip/web
Prakhar Pratyush f4f21bbbc6 onboarding: Fix focused to compose recipient box when modal is closed.
When a new user visits zulip for the first time:
* they are narrowed to DM with welcomer bot
* shown a navigation_tour_video in a modal

Earlier, when the modal was closed the compose recipient box
was focused instead of the compose textarea.

Reason:
`narrow_to_dm_with_welcome_bot_new_user` triggers a focus change from
(see `compose_actions.show_compose_box` with `opts.defer_focus = true`).

We start initializing this modal while the focus transition is in
progress, resulting in a flaky behaviour of the element that will
be in focus when modal is closed. Because the modal maintains the
focus position before and after toggling modal.

This commit fixes the issue by explicitly setting the focus to
ompose textarea when the modal is closed.
2025-08-07 09:28:24 -07:00
..
e2e-tests left_sidebar: Refactor to support user's navigation view preference. 2025-08-04 18:33:36 -07:00
generated
html web: Sync content of Django and nginx error pages. 2025-04-03 17:09:46 -07:00
images help: Disallow class in svg. 2025-07-23 11:24:12 -07:00
server katex_server: Fix import/no-named-as-default. 2024-09-25 15:41:01 -07:00
shared settings: Add UI to manage channel folders. 2025-08-06 18:58:15 -07:00
src onboarding: Fix focused to compose recipient box when modal is closed. 2025-08-07 09:28:24 -07:00
styles settings: Add UI to manage channel folders. 2025-08-06 18:58:15 -07:00
templates settings: Add UI to manage channel folders. 2025-08-06 18:58:15 -07:00
tests audio_player: Postprocess audio for added structure, classes. 2025-08-06 10:45:31 -07:00
third alerts: Restore alert-success colors. 2025-07-09 14:04:52 -07:00
.browserslistrc browserslist: Add support for logical props. 2025-05-21 15:19:08 -07:00
.gitignore emoji: Convert spritesheets to webp. 2024-09-11 09:03:47 -07:00
babel.config.js dependencies: Upgrade JavaScript dependencies. 2025-06-25 16:53:17 -07:00
debug-require-webpack-plugin.ts debug-require: Rename to *.cjs. 2024-11-13 09:18:56 -08:00
debug-require.cjs debug-require: Rename to *.cjs. 2024-11-13 09:18:56 -08:00
postcss.config.js postcss: Work around postcss-extend-rule incompatibility with :is(). 2025-05-23 22:25:38 -07:00
webpack.assets.json confirm_email_change: Use redirect-to-POST trick. 2025-07-07 17:15:08 -07:00
webpack.config.ts webpack: Disable cross-origin-header-check middleware. 2025-04-15 16:18:06 -07:00
webpack.dev-assets.json showroom: Standardize "showroom" name for UI components testing pages. 2025-01-13 17:46:15 -08:00