Skip to content

Commit 24fa916

Browse files
authored
Now widget can go on top of the another widgets (ToolJet#2444)
1 parent 60f515d commit 24fa916

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/src/Editor/Components/Multiselect.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ import React, { useState, useEffect, useRef } from 'react';
33
import SelectSearch, { fuzzySearch } from 'react-select-search';
44

55
export const Multiselect = function Multiselect({
6+
id,
7+
component,
68
height,
79
properties,
810
styles,
911
exposedVariables,
1012
setExposedVariable,
1113
fireEvent,
14+
onComponentClick,
1215
}) {
1316
const { label, value, values, display_values } = properties;
1417
const { borderRadius, visibility, disabledState } = styles;
@@ -87,6 +90,9 @@ export const Multiselect = function Multiselect({
8790
placeholder="Select.."
8891
ref={selectRef}
8992
closeOnSelect={false}
93+
onFocus={(event) => {
94+
onComponentClick(id, component, event);
95+
}}
9096
/>
9197
</div>
9298
</div>

0 commit comments

Comments
 (0)