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

Use select2 dropdownParent attr for css targetting #750

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

goldenapples
Copy link
Contributor

When interacting with a select2 field, this attaches the dropdown container as a child of the attribute field view, using the dropdownParent option in select2.

This allows us to target the specific fields that we need to style with css using parent selectors, without resorting to hacks like trying to set a classname on the container element when it's created.

Replaces #749, as a fix for #748.

When interacting with a select2 field, this attaches the dropdown
container as a child of the attribute field view, using the
`dropdownParent` option in select2.

This allows us to target the specific fields that we need to style with
css using parent selectors, without resorting to hacks like trying to
set a classname on the container element when it's created.
Copy link
Collaborator

@szepeviktor szepeviktor left a comment

Choose a reason for hiding this comment

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

Well executed.

@goldenapples goldenapples merged commit a511299 into master Jun 29, 2017
@goldenapples goldenapples deleted the attach-select2-dropdown-to-field branch June 29, 2017 19:05
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.

2 participants