Skip to content
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

Fix mobile controls gesture on discussion deletion/restoration #2324

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

SychO9
Copy link
Member

@SychO9 SychO9 commented Sep 28, 2020

Fixes #1427

Changes proposed in this pull request:
Because the Slidable class was always added on creation, it was lost every time the class list changed (in this case when the discussion was hidden/unhidden which added/removed DiscussionListItem--hidden class). So by determining the Slidable class's presence in elementAttrs() method, it guarantees it always properly set.

Reviewers should focus on:
..

Confirmed

  • Frontend changes: tested on a local Flarum installation.

Copy link
Sponsor Member

@askvortsov1 askvortsov1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thank you!

@askvortsov1 askvortsov1 merged commit 6668e75 into flarum:master Sep 28, 2020
@SychO9 SychO9 deleted the sm/fix-mobile-gesture-ondelete branch September 29, 2020 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile slide gesture breaks on Delete
3 participants