mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Dropdown breaking fix
This commit is contained in:
parent
b4ff440e87
commit
5e826c2f6f
1 changed files with 4 additions and 4 deletions
|
|
@ -297,7 +297,7 @@ export function Select({ componentMeta, darkMode, ...restProps }) {
|
|||
</div>
|
||||
<div className="field mb-2" data-cy={`input-and-label-column-name`}>
|
||||
<CodeHinter
|
||||
initialValue={isMultiSelect ? `{{${markedAsDefault.includes(item.value)}}}` : item?.default?.value}
|
||||
initialValue={isMultiSelect ? `{{${markedAsDefault.includes(item?.value)}}}` : item?.default?.value}
|
||||
theme={darkMode ? 'monokai' : 'default'}
|
||||
mode="javascript"
|
||||
lineNumbers={false}
|
||||
|
|
@ -374,7 +374,7 @@ export function Select({ componentMeta, darkMode, ...restProps }) {
|
|||
<div className="w-100" {...droppableProps} ref={innerRef}>
|
||||
{options?.map((item, index) => {
|
||||
return (
|
||||
<Draggable key={item.value} draggableId={item.value} index={index}>
|
||||
<Draggable key={item?.value} draggableId={item?.value} index={index}>
|
||||
{(provided, snapshot) => (
|
||||
<div
|
||||
key={index}
|
||||
|
|
@ -394,7 +394,7 @@ export function Select({ componentMeta, darkMode, ...restProps }) {
|
|||
}
|
||||
}}
|
||||
>
|
||||
<div key={item.value}>
|
||||
<div key={item?.value}>
|
||||
<ListGroup.Item
|
||||
style={{ marginBottom: '8px', backgroundColor: 'var(--slate3)' }}
|
||||
onMouseEnter={() => setHoveredOptionIndex(index)}
|
||||
|
|
@ -406,7 +406,7 @@ export function Select({ componentMeta, darkMode, ...restProps }) {
|
|||
<SortableList.DragHandle show />
|
||||
</div>
|
||||
<div className="col text-truncate cursor-pointer" style={{ padding: '0px' }}>
|
||||
{getResolvedValue(item.label)}
|
||||
{getResolvedValue(item?.label)}
|
||||
</div>
|
||||
<div className="col-auto">
|
||||
{index === hoveredOptionIndex && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue