From 51f62052587e1ee392dbd151d62c755945125375 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 25 Nov 2020 18:48:18 -0700 Subject: [PATCH] Fix modal buttons not being disabled by disabling them Looks like this was just a missed block of code, but also the important bit. Fixes https://github.com/vector-im/element-web/issues/15801 --- src/components/views/dialogs/ModalWidgetDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/ModalWidgetDialog.tsx b/src/components/views/dialogs/ModalWidgetDialog.tsx index e722374555..520972975e 100644 --- a/src/components/views/dialogs/ModalWidgetDialog.tsx +++ b/src/components/views/dialogs/ModalWidgetDialog.tsx @@ -161,7 +161,9 @@ export default class ModalWidgetDialog extends React.PureComponent + const isDisabled = this.state.disabledButtonIds.includes(def.id); + + return { def.label } ; });