From 5bae89352f31520282a869bdbb29af45573eec61 Mon Sep 17 00:00:00 2001 From: habubey Date: Thu, 4 Aug 2022 23:39:42 +0300 Subject: [PATCH] Wrong event value onBlur fixed --- components/lib/dropdown/Dropdown.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index 1e3448926a..f31c2dcecd 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -82,7 +82,17 @@ export const Dropdown = React.memo(React.forwardRef((props, ref) => { const onInputBlur = (event) => { setFocusedState(false); - props.onBlur && props.onBlur(event); + props.onBlur && props.onBlur({ + originalEvent: event.originalEvent, + value: event.target.value, + stopPropagation: () => { }, + preventDefault: () => { }, + target: { + name: props.name, + id: props.id, + value: event.target.value, + } + }); } const onPanelClick = (event) => {