Make Esc work for stop drawing

This commit is contained in:
Sanster
2022-02-06 13:50:26 +08:00
parent 31a00813e0
commit 33c893746e
2 changed files with 60 additions and 21 deletions

View File

@@ -39,7 +39,7 @@ export default function SizeSelector(props: SizeSelectorProps) {
style={{ top: '-112px' }}
className="absolute mb-1 w-full overflow-auto text-base bg-black backdrop-blur backdrop-filter bg-opacity-10 rounded-md max-h-60 ring-opacity-50 focus:outline-none sm:text-sm"
>
{sizes.map((size, _) => (
{sizes.map(size => (
<Listbox.Option
key={size}
className={({ active }) =>