Skip to content

Commit

Permalink
fix(Dropdown): opened dropdown must be closed in case open another one
Browse files Browse the repository at this point in the history
  • Loading branch information
NairaMisakyan committed Feb 23, 2024
1 parent 4919ead commit 724be16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/molecules/ExtendedInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ const ExtendedInput = forwardRef((props, ref) => {
if (isDropdown) {
onClick(e);
if (!readOnly) {
stopEvent(e, true);
focused ? inputRef.current.blur() : inputRef.current.focus();
}
}
Expand Down Expand Up @@ -257,7 +256,7 @@ const ExtendedInput = forwardRef((props, ref) => {
);

return (
<Tooltip position="bottom" title={showTooltip ? errorText || tooltipText : ''}>
<Tooltip position="bottom" title={tooltipText} isVisible={!!tooltipText}>
<div
className={classnames(
'input-holder',
Expand Down
1 change: 1 addition & 0 deletions stories/organisms/Dropdown/Dropdown.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default {
};

const Template = ({ ...args }) => <DropdownComponent {...args} />;

export const Default = Template.bind({});

export const Multiselect = Template.bind({});
Expand Down

0 comments on commit 724be16

Please sign in to comment.