Commit c28a98a4 authored by Yannis Barlas's avatar Yannis Barlas

fix(submission form): fix credit needing double click to open

parent 7879ef8c
......@@ -3,7 +3,7 @@
import React from 'react'
import styled from 'styled-components'
import { Select } from '../ui'
import Select from '../ui/Select'
const options = [
{
......@@ -64,6 +64,11 @@ const options = [
},
]
const StyledSelect = styled(Select)`
max-width: 675px;
min-width: 350px !important; /* it was overriden by select */
`
const Credit = props => {
const { name, readOnly, setTouched, setFieldValue, touched, values } = props
......@@ -80,11 +85,6 @@ const Credit = props => {
if (!touched) setTouched()
}
const StyledSelect = styled(Select)`
max-width: 675px;
min-width: 350px !important; /* it was overriden by select */
`
return (
<StyledSelect
closeMenuOnSelect={false}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment