Skip to content
Snippets Groups Projects
Unverified Commit 4d0e9cad authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: (autocomplete) height of the input box (#862)

parent bfe896a3
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ function ConfigureField({
field={field}
subfield={subfield}
type={type === 'id' && op === 'contains' ? 'string' : type}
value={normalizeValue(value, op === 'oneOf')}
value={value}
multi={op === 'oneOf'}
style={{ marginTop: 10 }}
onChange={v => dispatch({ type: 'set-value', value: v })}
......@@ -530,18 +530,3 @@ export function AppliedFilters({ filters, editingFilter, onUpdate, onDelete }) {
</View>
);
}
function normalizeValue(value, isMulti) {
if (isMulti) {
if (Array.isArray(value)) {
return value;
}
return value.split(', ');
}
if (Array.isArray(value)) {
return value.join(', ');
}
return value;
}
......@@ -10,7 +10,8 @@ const colourStyles = {
outline: 0,
marginLeft: -1,
marginRight: 1,
padding: '6px 2px',
padding: '5px 2px',
fontSize: '13px',
minHeight: 'auto',
}),
input: styles => ({
......
---
category: Bugfix
authors: [MatissJanis]
---
Autocomplete: styling fixes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment