Skip to content
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

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

layershifter
Copy link
Member

Refs #2734.

This PR allows to control a value of the autoComplete prop in the DropdownSearchInput component.

@@ -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,
Copy link
Member Author

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.

https://www.w3schools.com/tags/att_input_autocomplete.asp

@@ -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')
Copy link
Member Author

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-io
Copy link

codecov-io commented Apr 24, 2018

Codecov Report

Merging #2738 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/modules/Dropdown/DropdownSearchInput.js 100% <100%> (ø) ⬆️
src/modules/Search/Search.js 99.46% <0%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e55c7d...d684c56. Read the comment docs.

@levithomason levithomason merged commit f7f0cce into master Apr 27, 2018
@levithomason levithomason changed the title feat(Dropdown): allow to enable autoComplete on DropdownSearchInput feat(Dropdown): allow autoComplete on DropdownSearchInput Apr 27, 2018
@levithomason levithomason deleted the feat/dropdown-search-input branch May 2, 2018 06:16
@levithomason
Copy link
Member

Released in semantic-ui-react@0.80.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants