This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-form-select] Fixed focus issue in MultiSelect (#4089)
Co-authored-by: Avijit Das <avijit.das@cerner.com> Co-authored-by: Supreeth <supreeth.mr1990@gmail.com>
- Loading branch information
1 parent
ab02fbc
commit 5d2f4a7
Showing
22 changed files
with
329 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ages/terra-core-docs/src/terra-dev-site/test/form-select/ControlMultipleDisabled.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames/bind'; | ||
import Select from 'terra-form-select'; | ||
import styles from './common/Select.test.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
class ControlledMultipleDisabled extends React.Component { | ||
constructor() { | ||
super(); | ||
|
||
this.state = { value: ['blue', 'red'] }; | ||
this.handleChange = this.handleChange.bind(this); | ||
} | ||
|
||
handleChange(value) { | ||
this.setState({ value }); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className={cx('content-wrapper')}> | ||
<Select | ||
id="multiple" | ||
onChange={this.handleChange} | ||
placeholder="Select a color" | ||
value={this.state.value} | ||
variant="multiple" | ||
disabled | ||
> | ||
<Select.Option value="blue" display="Blue" /> | ||
<Select.Option value="green" display="Green" /> | ||
<Select.Option value="purple" display="Purple" /> | ||
<Select.Option value="red" display="Red" /> | ||
<Select.Option value="violet" display="Violet" /> | ||
</Select> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default ControlledMultipleDisabled; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.