diff options
author | bobzel <zzzman@gmail.com> | 2024-03-28 00:05:05 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-28 00:05:05 -0400 |
commit | 52bd492747cf169df7bcdecdbdbb353d45b19734 (patch) | |
tree | 305468bdfa2d919d4380eafd866ccca13fff0925 /src/client/views/EditableView.tsx | |
parent | 9b2cfea0c13fef048ba6ae3d5281d1eea836e9b3 (diff) |
fixed tabbing between items in nested dashFieldViews
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 44c8e4e1f..85e893e19 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -121,6 +121,7 @@ export class EditableView extends ObservableReactComponent<EditableProps> { @action onKeyDown = (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => { + if (e.nativeEvent.defaultPrevented) return; // hack .. DashFieldView grabs native events, but react ignores stoppedPropagation and preventDefault, so we need to check it here switch (e.key) { case 'Tab': e.stopPropagation(); |