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

Не передаем `monthNames` в компоненты ниже `NativeDatePicker`.
  • Loading branch information
mendrew authored and actions-user committed Jan 17, 2024
1 parent e6b6db7 commit eb96feb
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 eb96feb

Please sign in to comment.