-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix unexpected behaviour of Dropdown #2933
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
Conversation
dcc.Dropdown has inconsistent layout flow compared to other common input components. The layout bug is normalised with CSS style display set to inline-block.
| import PropTypes from 'prop-types'; | ||
| import React, {Component, lazy, Suspense} from 'react'; | ||
| import dropdown from '../utils/LazyLoader/dropdown'; | ||
| import './css/Dropdown.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is already imported here:
| import '../components/css/Dropdown.css'; |
| className={`dash-dropdown ${className || ''}`} | ||
| styles={{ | ||
| control: (provided) => ({ | ||
| ...provided, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provided should be at the end to possibly overload the defaults.
|
Given the age and inactivity on this PR I am going to close it. Please re-open if you are still working on it. |
Closes: #2653
Issue:
dcc.Dropdown has inconsistent layout flow
compared to other common input components.
Changes:
render() of dcc.Dropdown and Dropdown.css styled with display set to inline-block.
Contributor Checklist