Skip to content

[stable30] fix(files): Reset drop notice on firefox - #47498

Merged
skjnldsv merged 2 commits into
stable30from
backport/47465/stable30
Aug 27, 2024
Merged

[stable30] fix(files): Reset drop notice on firefox#47498
skjnldsv merged 2 commits into
stable30from
backport/47465/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Aug 26, 2024

Copy link
Copy Markdown

Backport of #47465

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

On firefox there is an old bug where when you move a dragged file outside
the window the `dragleave` event is never emitted.
So we just use a timeout to reset the drag over state.
Also a small change: Use the ID of the main container instead of relying on tag name and class.
(The ID is guranteed as other APIs rely on it, while the class is just used internally).
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@backportbotbackportbotBot added bug design Design, UI, UX, etc. 3. to review Waiting for reviews feature: files labels Aug 26, 2024
@backportbotbackportbotBot added this to the Nextcloud 30.0.1 milestone Aug 26, 2024
@susnux
susnuxforce-pushed the backport/47465/stable30 branch from bcb1f60 to fc64d5cCompareAugust 26, 2024 23:53
@susnux

Copy link
Copy Markdown
Contributor

/compile

@susnux
susnux marked this pull request as ready for review August 26, 2024 23:53
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit fc9da19 into stable30Aug 27, 2024
@skjnldsv
skjnldsv deleted the backport/47465/stable30 branch August 27, 2024 07:20
@blizzzblizzz mentioned this pull request Aug 29, 2024
24 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugdesignDesign, UI, UX, etc.feature: files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@susnux@skjnldsv@nextcloud-command