Skip to content

Commit

Permalink
make checkbox values ellipsis (#277)
Browse files Browse the repository at this point in the history
* make checkbox values ellipsis

* remoce unused classname
  • Loading branch information
AminTi authored Oct 19, 2023
1 parent ca52cf5 commit cb0d633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MultiValueControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class MultiValueControl extends React.Component<IMultiValueControlProps,
/>
<FocusZone
direction={FocusZoneDirection.vertical}
className="checkboxes"

>
{this.state.filter ? null :
<Checkbox
Expand All @@ -106,7 +106,7 @@ export class MultiValueControl extends React.Component<IMultiValueControlProps,
onFocus: this._onFocus,
}}
onChange={() => this._toggleOption(o)}
label={this._wrapText(o)}
label={this._wrapText(o.length > 30 ? `${o.slice(0, 30)}...` : o)}
title={o}
/>)}
</FocusZone>
Expand Down

0 comments on commit cb0d633

Please sign in to comment.