-
-
Notifications
You must be signed in to change notification settings - Fork 92
Improve Tag Selectors #224
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
df71704
feat: expand the capabilities of TagSelector
spl3g aecd1c8
fix: close the paper when tabbing to the next field
spl3g b155bfe
feat: make TagChip use makeStyles
spl3g 3ae064b
feat: allow duplicate keys in useSuggest
spl3g 5b24d42
feat: improve TagSelector UX
spl3g 6530be6
feat: replace TagKeySelector with TagSelector for Tags
spl3g 839b615
fix: follow linter suggestions
spl3g 939b951
fix: improve wording of the noValues label
spl3g f3ccab0
feat: remove TagKeySelector
spl3g 5b25aec
fix: move special tag filtering into useSuggest
spl3g 7ab285a
fix: show the appropriate label after pressing backspace
spl3g c75adda
feat: handle spaces
spl3g d8eb82f
feat: remove debug prints
spl3g 50d58e5
fix: set the suggestions width to the current container width
spl3g f7569da
feat: add an error for when value wasn't found
spl3g 4b39359
feat: add support for adding just keys in addValues
spl3g 32f7b04
fix: remove debug print
jmattheis fd3db1f
fix: linting
jmattheis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import React from 'react'; | ||
| import FormControl from '@material-ui/core/FormControl'; | ||
| import Box from '@material-ui/core/Box'; | ||
| import InputLabel from '@material-ui/core/InputLabel'; | ||
| import {TagSelector, TagSelectorProps} from './TagSelector'; | ||
|
|
||
| interface FormTagSelectorProps extends TagSelectorProps { | ||
| label: string; | ||
| required?: boolean; | ||
| } | ||
|
|
||
| export const FormTagSelector = ({label, required = false, ...props}: FormTagSelectorProps) => { | ||
| return ( | ||
| <Box mt={1}> | ||
| <FormControl fullWidth required> | ||
| <Box pt={2}> | ||
| <InputLabel shrink> {label} </InputLabel> | ||
| <Box className="MuiInput-underline"> | ||
| <TagSelector {...props} /> | ||
| </Box> | ||
| </Box> | ||
| </FormControl> | ||
| </Box> | ||
| ); | ||
| }; |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.