From cd4bbe3e960bdbd8f9a0365fbeff795460a49bb8 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:59:28 -0800 Subject: [PATCH] convert value to number on set --- .../features/settings/components/playback/mpv-settings.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/settings/components/playback/mpv-settings.tsx b/src/renderer/features/settings/components/playback/mpv-settings.tsx index 8ace79974..a7ab461f5 100644 --- a/src/renderer/features/settings/components/playback/mpv-settings.tsx +++ b/src/renderer/features/settings/components/playback/mpv-settings.tsx @@ -326,7 +326,9 @@ export const MpvSettings = () => { handleSetMpvProperty('replayGainFallbackDB', e)} + onBlur={(e) => + handleSetMpvProperty('replayGainFallbackDB', Number(e.currentTarget.value)) + } /> ), description: t('setting.replayGainFallback', {