{
+ setInputValue("");
+ setIsOpen(false);
+ onValueChange(option.value);
+ }}
+ onMouseDown={(e) => {
+ e.preventDefault();
+ setIsOpen(false);
+ onValueChange(option.value);
+ }}
+ onClick={() => {
+ setIsOpen(false);
+ onValueChange(option.value);
+ }}
+ className="!z-50 !cursor-pointer flex justify-between min-w-[7rem] items-center !px-3 rounded-md truncate break-words w-full"
+ >
+ {Icon ? (
+
+ {Icon}
+ {option.label}
+
+ ) : (
+ option.label
+ )}
+
+ );
+ })
: null}