mirror of
https://github.com/apache/superset.git
synced 2026-06-02 14:19:21 +00:00
fix(explore comma): make that the comma can be added by removing it from token separators… (#18926)
* make that the comma can be added by removing it from token separators in select component. * fix(explore comma): add the allowTokenSeperators props into Select * fix(explore comma): make to allow to customize the token separators in Select. * fix(explore comma): make to add the unit test and story book. * fix(explore comma): make to fix the lint * fix(explore comma): make to fix the spell & add tokenSeparatprs props to PickedSelectProps * Update Select.tsx * fix(explore comma): make to run lint fix
This commit is contained in:
@@ -52,6 +52,7 @@ const propTypes = {
|
||||
options: PropTypes.array,
|
||||
placeholder: PropTypes.string,
|
||||
filterOption: PropTypes.func,
|
||||
tokenSeparators: PropTypes.arrayOf(PropTypes.string),
|
||||
|
||||
// ControlHeader props
|
||||
label: PropTypes.string,
|
||||
@@ -177,6 +178,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
optionRenderer,
|
||||
showHeader,
|
||||
value,
|
||||
tokenSeparators,
|
||||
// ControlHeader props
|
||||
description,
|
||||
renderTrigger,
|
||||
@@ -242,6 +244,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
placeholder,
|
||||
sortComparator: this.props.sortComparator,
|
||||
value: getValue(),
|
||||
tokenSeparators,
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user