-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File upload gets placed into empty stream or topic box #23284
Comments
Hello @zulip/server-compose, @zulip/server-misc members, this issue was labeled with the "area: compose", "area: uploads" labels, so you may want to check it out! |
Huh, and now this stopped happening for me. I'm very puzzled! ... And now it's happening again. |
Hrm, I don't remember why I closed this issue earlier. |
I can reliably reproduce this issue in Chrome on Linux. It's a bit finicky; it works best if you have a split-screen window (so you don't need to alt-tab in order before initiating the drag, which likely affects the focus state, which is important for this reproducer) and open the compose box using the The code path doing the insertion is With this logging code added:
I get this output: What appears to be happening is that somehow the focus stays on the wrong element just before the The right fix likely involves just replacing |
Opened #23499 attempting that. |
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Fixes zulip#23284 The basic approach used by `text-area-edit` is same as we were using, so there is no real change. There are some nice checks in `text-area-edit` which we don't do that helps us avoid common bugs.
Repro:
Expected: File gets uploaded as normal.
Actual: [Uploading..] text gets placed into the stream box if it's empty, and into the topic box otherwise.
The text was updated successfully, but these errors were encountered: