mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
Move ref in FilterPill to allow closing by clicking pill
Clicking on the pill would reopen the dropdown; it closes properly now
This commit is contained in:
parent
7027d7f993
commit
98a9ca359d
|
@ -218,6 +218,7 @@ const FilterPill: React.FC<FilterPillProps> = ({
|
|||
|
||||
return (
|
||||
<div
|
||||
ref={dropdownRef}
|
||||
className={
|
||||
"border rounded-2xl w-max px-2 py-0.5 text-sm mr-2 relative " +
|
||||
(isActive
|
||||
|
@ -248,7 +249,6 @@ const FilterPill: React.FC<FilterPillProps> = ({
|
|||
|
||||
{/* The filter option selection dropdown */}
|
||||
<div
|
||||
ref={dropdownRef}
|
||||
className={
|
||||
"absolute top-full mt-0.5 left-0 border border-gray-200 bg-white shadow-lg rounded-md p-1.5 w-48 " +
|
||||
(showDropdown ? "flex flex-col" : "hidden")
|
||||
|
|
Loading…
Reference in New Issue
Block a user