Skip to content

Commit

Permalink
fix: popover in dropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed Nov 24, 2023
1 parent 1429c68 commit 8f83856
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/apps/components/src/Common/GlobalColorsPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const GlobalColorsPicker = ({ onChange, activeColor, isGlobal }) => {
/>
</>
)}
popoverProps={{
inline: true,
}}
/>
);
};
Expand Down
3 changes: 3 additions & 0 deletions assets/apps/components/src/Controls/ColorControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ const ColorControl = ({
? ''
: 'neve-color-picker-dropdown'
}
popoverProps={{
inline: true,
}}
renderToggle={({ isOpen, onToggle }) => {
toggle = onToggle;
return (
Expand Down
3 changes: 3 additions & 0 deletions assets/apps/components/src/Controls/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const MultiSelect = ({ choices, onChange, currentValue, label }) => {
<Dropdown
className="dd-toggle"
focusOnMount={false}
popoverProps={{
inline: true,
}}
renderToggle={({ isOpen, onToggle }) => (
<Button
isSmall
Expand Down

0 comments on commit 8f83856

Please sign in to comment.