Skip to content

Commit

Permalink
change: don't crop menu items list react-select
Browse files Browse the repository at this point in the history
  • Loading branch information
julio-ufpb committed Dec 31, 2023
1 parent 4ccd7ce commit 88bab68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/UniversiForm/UniversiForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ export function UniversiForm(props : formProps){
{
object.canCreate != undefined && object.canCreate ?
<CreatableSelect isClearable placeholder={`Selecionar ${object.label}`} className="category-select" isMulti={object.type === FormInputs.SELECT_MULTI ? true : undefined} options={optionsList}
menuPosition="fixed"
onChange={(value) => handleSelectChange(index, value)}
noOptionsMessage={()=>`Não foi possível encontrar ${object.label}`}
formatCreateLabel={(value) => `Criar "${value}"`}
Expand All @@ -478,6 +479,7 @@ export function UniversiForm(props : formProps){
/>
:
<Select isClearable placeholder={`Selecionar ${object.label}`} className="category-select" isMulti={object.type === FormInputs.SELECT_MULTI ? true : undefined} options={optionsList}
menuPosition="fixed"
onChange={(value) => handleSelectChange(index, value)}
noOptionsMessage={()=>`Não foi possível encontrar ${object.label}`}
classNamePrefix="category-item"
Expand Down

0 comments on commit 88bab68

Please sign in to comment.