From 97acb5aa1f7c4671246ff90895e61a509d77e62c Mon Sep 17 00:00:00 2001 From: Andrey Medvedev Date: Fri, 19 Jan 2024 13:02:44 +0300 Subject: [PATCH] Exclude monthNames prop from passed props to NativeDatePicker (#6386) (#6409) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eсли смотреть компонент `DatePicker` с переданным `monthNames` на тач устройствах, то cвойство `monthNames` встает html-аттрибутом. В режиме локальной разработки есть реакт-варнинг. Не передаем `monthNames` в компоненты ниже `NativeDatePicker`. --- packages/vkui/src/components/DatePicker/DatePicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vkui/src/components/DatePicker/DatePicker.tsx b/packages/vkui/src/components/DatePicker/DatePicker.tsx index 8bfdf5f785..bb96371991 100644 --- a/packages/vkui/src/components/DatePicker/DatePicker.tsx +++ b/packages/vkui/src/components/DatePicker/DatePicker.tsx @@ -147,10 +147,11 @@ const DatePickerCustom = ({ const DatePickerNative = ({ min = { day: 0, month: 0, year: 0 }, max = { day: 31, month: 12, year: 2100 }, + monthNames, + popupDirection, dayPlaceholder, monthPlaceholder, yearPlaceholder, - popupDirection, defaultValue, day, month,