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

Add 'switch' behavior for single-post-max #82

Merged
merged 1 commit into from
Jun 25, 2021
Merged

Conversation

alwaysblank
Copy link
Contributor

@alwaysblank alwaysblank commented Jun 25, 2021

When maxPosts: 1, the post-selection behavior isn't intuitive: Once a single post has been selected, the user must manually de-select that post before switching to another. This makes sense for multiple selections, for for a single selection it might make more sense that the current selection is switched to whatever post is clicked, without require de-selection first. This PR implements that change.

This would change the behavior someone familiar with this package would expect, which may constitute a breaking change.

Note: This feature was added to a fork of this plugin used in another project, so I'm pushing it back upstream.

@alwaysblank alwaysblank requested a review from mattheu June 25, 2021 22:49
@mattheu mattheu merged commit 25bb10f into master Jun 25, 2021
@mattheu mattheu deleted the change-max-1-behavior branch June 25, 2021 22:55
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.

None yet

2 participants