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

Styleselect and official react popper #777

Merged
merged 3 commits into from May 3, 2018

Conversation

kristofferjs
Copy link
Contributor

  • Fixing style select (the one in block editor)
  • Using official react-popper

<div ref={this.setPopperElement}>
<List className={styles.list}>
{items.map((item, index) => {
const isSemiSelected = value && value.length > 1 && includes(value, item)
Copy link
Member

Choose a reason for hiding this comment

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

Could you use value.includes(item) here instead?

Edit: I see now that this was not added in this PR. Bonus point if you would like to change it to value.includes(item) still

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep

@kristofferjs kristofferjs merged commit ba8aadf into next May 3, 2018
@kristofferjs kristofferjs deleted the styleselect-and-official-react-popper branch May 3, 2018 16:02
bjoerge pushed a commit that referenced this pull request May 14, 2018
* [components] Using official react-popper

* [components] Fixing styleselect with react-popper

* [components] Using native includes instead of lodash
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