fix: stop propagation on type

This commit is contained in:
tresabhi committed 2024-11-10 22:13:44 -06:00
1 parent 81e7f78e55
commit 8dd4d80fca
2 files changed
+5 -1

No files matched your search

@@ -109,6 +109,8 @@ export function CustomShellButton() {
}}
onFocus={(event) => event.target.select()}
onKeyDown={(event) => {
event.stopPropagation();
if (event.key === 'Enter') {
(event.target as HTMLInputElement).blur();
} else if (event.key === 'Escape') {
@@ -136,6 +138,8 @@ export function CustomShellButton() {
}}
onFocus={(event) => event.target.select()}
onKeyDown={(event) => {
event.stopPropagation();
if (event.key === 'Enter') {
(event.target as HTMLInputElement).blur();
} else if (event.key === 'Escape') {
@@ -161,7 +161,7 @@ export const TankSandbox = forwardRef<HTMLCanvasElement, TankSandboxProps>(
return (
<Canvas
// frameloop={onScreen ? 'demand' : 'never'}
frameloop={onScreen ? 'demand' : 'never'}
gl={{
clippingPlanes: [],
localClippingEnabled: true,