1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

fix language select style (#5693)

* fix language select style

* fix this.tabItemClick bug
This commit is contained in:
Michael An
2023-10-19 13:43:26 +08:00
committed by GitHub
parent 60bb02f3ac
commit 42eacdb388
3 changed files with 5 additions and 27 deletions

View File

@@ -50,6 +50,7 @@ export default class SeahubSelect extends React.Component {
isClearable: PropTypes.bool,
placeholder: PropTypes.string,
classNamePrefix: PropTypes.string,
className: PropTypes.string,
form: PropTypes.string,
onChange: PropTypes.func.isRequired,
menuPortalTarget: PropTypes.string,
@@ -79,7 +80,8 @@ export default class SeahubSelect extends React.Component {
render() {
const { options, onChange, value, isSearchable, placeholder, isMulti, menuPosition, isClearable, noOptionsMessage,
classNamePrefix, innerRef, isDisabled, form } = this.props;
classNamePrefix, innerRef, isDisabled, form, className } = this.props;
return (
<Select
value={value}
@@ -88,6 +90,7 @@ export default class SeahubSelect extends React.Component {
onChange={onChange}
options={options}
isMulti={isMulti}
className={className}
classNamePrefix={classNamePrefix}
styles={MenuSelectStyle}
components={{ Option, MenuList, ClearIndicator }}