From 45167e3f3fe4872358ec2b9b621193e7e82a7b03 Mon Sep 17 00:00:00 2001 From: Sherfin Shamsudeen Date: Tue, 11 Jan 2022 20:48:55 +0530 Subject: [PATCH] Call onComponentClick on mouse down on dropdown (#1794) --- frontend/src/Editor/Components/DropDown.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/Components/DropDown.jsx b/frontend/src/Editor/Components/DropDown.jsx index b78cb0136f..5a90e83db2 100644 --- a/frontend/src/Editor/Components/DropDown.jsx +++ b/frontend/src/Editor/Components/DropDown.jsx @@ -1,7 +1,6 @@ import _ from 'lodash'; import React, { useState, useEffect } from 'react'; import Select from 'react-select'; - export const DropDown = function DropDown({ height, validate, @@ -10,6 +9,9 @@ export const DropDown = function DropDown({ setExposedVariable, fireEvent, darkMode, + onComponentClick, + id, + component, }) { let { label, value, display_values, values } = properties; const { visibility, disabledState } = styles; @@ -130,7 +132,13 @@ export const DropDown = function DropDown({ return ( <> -
+
{ + onComponentClick(id, component, event); + }} + >