Skip to content

Commit

Permalink
Exclude monthNames prop from passed props to NativeDatePicker (#6386) (
Browse files Browse the repository at this point in the history
…#6409)

Eсли смотреть компонент `DatePicker` с переданным `monthNames` на тач устройствах, то cвойство `monthNames` встает html-аттрибутом. В режиме локальной разработки есть реакт-варнинг.

Не передаем `monthNames` в компоненты ниже `NativeDatePicker`.
  • Loading branch information
mendrew authored Jan 19, 2024
1 parent c9e8d12 commit 97acb5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vkui/src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 97acb5a

Please sign in to comment.