From b51ae06f9802d28d3071da26b6821ee868bf6d54 Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Tue, 1 Aug 2023 16:53:08 +0200 Subject: [PATCH] Fix keyboard navigation changing settings in App settings When using keyboard navigation `onBlur` and `onChange` on radio buttons caused settings to be changed. This replaces both with `onClick` Signed-off-by: Plastikmensch --- .../glitch/features/local_settings/page/item/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx b/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx index 15dce634d21fc7..1555127a0818e6 100644 --- a/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx +++ b/app/javascript/flavours/glitch/features/local_settings/page/item/index.jsx @@ -60,8 +60,7 @@ export default class LocalSettingsPageItem extends PureComponent { name={id} id={optionId} value={opt.value} - onBlur={handleChange} - onChange={handleChange} + onClick={handleChange} checked={currentValue === opt.value} disabled={!enabled} {...inputProps}