-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat(Dropdown): allow autoComplete on DropdownSearchInput #2738
Conversation
@@ -18,29 +13,27 @@ class DropdownSearchInput extends Component { | |||
/** An element type to render as (string or function). */ | |||
as: customPropTypes.as, | |||
|
|||
/** An input can have the auto complete. */ | |||
autoComplete: PropTypes.string, |
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.
As I remember, there can be on
and off
values.
@@ -10,15 +10,17 @@ describe('DropdownSearchInput', () => { | |||
|
|||
describe('aria', () => { | |||
it('should have aria-autocomplete', () => { | |||
shallow(<DropdownSearchInput />) | |||
.should.have.prop('aria-autocomplete', 'list') | |||
shallow(<DropdownSearchInput />).should.have.prop('aria-autocomplete', 'list') |
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.
Prettier has done some work there 😃
Codecov Report
@@ Coverage Diff @@
## master #2738 +/- ##
==========================================
+ Coverage 99.67% 99.74% +0.07%
==========================================
Files 160 160
Lines 2761 2761
==========================================
+ Hits 2752 2754 +2
+ Misses 9 7 -2
Continue to review full report at Codecov.
|
Released in |
Refs #2734.
This PR allows to control a value of the
autoComplete
prop in theDropdownSearchInput
component.