From 5b6e173183b46593037a498a7a2e2ef2cf7ab35f Mon Sep 17 00:00:00 2001 From: Saschl Date: Fri, 9 Apr 2021 05:40:20 +0200 Subject: [PATCH] fix(efb): unresponsive buttons and deactivated doors (#4295) * fix: onmousedown instead of onclick + fixed deactivated doors * fix: tug direction with deactivated tug * fix: tug unable to activate * fix: automatic deactivation properly resets doors Co-authored-by: pepperoni505 Co-authored-by: Will Pine (cherry picked from commit 8896845806226695ae12188d5cd28a5b53b11b71) --- .../src/EFB/Components/Button/Button.tsx | 2 +- src/instruments/src/EFB/Ground/DoorToggle.tsx | 24 +++++- src/instruments/src/EFB/Ground/Ground.tsx | 76 +++++++++++++------ 3 files changed, 72 insertions(+), 30 deletions(-) diff --git a/src/instruments/src/EFB/Components/Button/Button.tsx b/src/instruments/src/EFB/Components/Button/Button.tsx index 6534c7b4239..5517c888fe2 100644 --- a/src/instruments/src/EFB/Components/Button/Button.tsx +++ b/src/instruments/src/EFB/Components/Button/Button.tsx @@ -16,7 +16,7 @@ type props = { const Button = ({ text, type = BUTTON_TYPE.BLUE, onClick, className, ...props }: props) => (