Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Aug 24, 2020
1 parent 0f9e849 commit 6c41209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

.lnsLayerPanel__anchor {
width: 100%;
padding: $euiSizeS;
}

.lnsLayerPanel__dndGrab {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FilterPopover = ({

const inputRef = useRef<HTMLInputElement>();
const onQueryChange = (input: Query) => setTempFilter({ ...tempFilter, input });
const onLabelChange = (label: string) => setTempFilter({ ...tempFilter, label });
const onLabelChange = (label: string) => setTempFilter({ ...tempFilter, label: label.trim() });
const onSubmit = (input: Query) => {
try {
if (input.language === SEARCH_QUERY_LANGUAGE.KUERY) {
Expand Down Expand Up @@ -136,7 +136,7 @@ export const FilterPopover = ({
}
}}
value={tempFilter.label || ''}
onChange={(e) => onLabelChange(e.target.value.trim())}
onChange={(e) => onLabelChange(e.target.value)}
onKeyDown={({ key }: React.KeyboardEvent<HTMLInputElement>) => {
if (keys.ENTER === key) {
if (tempFilter.input.query.length) {
Expand Down

0 comments on commit 6c41209

Please sign in to comment.