This repository was archived by the owner on Mar 4, 2020. It is now read-only.
fix(Dropdown): properly accept id on searchInput from Form#1938
Merged
silviuaavram merged 7 commits intomasterfrom Sep 19, 2019
Merged
fix(Dropdown): properly accept id on searchInput from Form#1938silviuaavram merged 7 commits intomasterfrom
silviuaavram merged 7 commits intomasterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1938 +/- ##
=========================================
- Coverage 70.4% 70.4% -0.01%
=========================================
Files 892 892
Lines 7867 7870 +3
Branches 2295 2298 +3
=========================================
+ Hits 5539 5541 +2
- Misses 2315 2316 +1
Partials 13 13
Continue to review full report at Codecov.
|
CHANGELOG.md
Outdated
| - Fix `CreateShorthandOptions` should be typed @lucivpav ([#1886](https://github.com/stardust-ui/react/pull/1886)) | ||
| - Add `shadowLevel1Dark` in Teams themes @notandrew ([#1887](https://github.com/stardust-ui/react/pull/1887)) | ||
| - When merging themes use deep merge for site and component variables @miroslavstastny ([#1907](https://github.com/stardust-ui/react/pull/1907)) | ||
| - Fix `Dropdown` to properly accept `id` on `searchInpiut` @silviuavram ([#1938](https://github.com/stardust-ui/react/pull/1938)) |
Member
There was a problem hiding this comment.
Suggested change
| - Fix `Dropdown` to properly accept `id` on `searchInpiut` @silviuavram ([#1938](https://github.com/stardust-ui/react/pull/1938)) | |
| - Fix `Dropdown` to properly accept `id` on `searchInput` @silviuavram ([#1938](https://github.com/stardust-ui/react/pull/1938)) |
Typo
docs/src/examples/components/Form/Usage/FormExampleDropdown.shorthand.tsx
Show resolved
Hide resolved
| onStateChange={this.handleStateChange} | ||
| labelId={this.props['aria-labelledby']} | ||
| environment={this.context.target.defaultView} | ||
| inputId={this.props.searchInput ? this.props.searchInput['id'] : undefined} |
Member
There was a problem hiding this comment.
<Dropdown searchInput={render => render('boo')} />
<Dropdown searchInput='Oops' />This thing is pretty fragile. Do we have other options?
Collaborator
Author
There was a problem hiding this comment.
you are right, I need to add another check. this will only work if searchInput is an object.
jurokapsiar
approved these changes
Sep 19, 2019
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pass
searchInput.idtoDownshift'spropinputId.fix the Form + Dropdown example to make the searcInput focusable on label click.