Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DatePicker] Ошибка в консоли при фокусе инпута #2934

Closed
Eazymov opened this issue Jun 29, 2022 · 2 comments · Fixed by #2911
Closed

[DatePicker] Ошибка в консоли при фокусе инпута #2934

Eazymov opened this issue Jun 29, 2022 · 2 comments · Fixed by #2911
Labels

Comments

@Eazymov
Copy link
Contributor

Eazymov commented Jun 29, 2022

@skbkontur/react-ui@4.1.2
Chrome@103.0.5060.53
Ubuntu@22.04

Код:

import { DatePicker } from '@skbkontur/react-ui';
//...
const [value, setValue] = useState(null);

return <DatePicker width="100%" value={value} onValueChange={setValue} />;

Ошибка:

Warning: Failed prop type: Invalid prop `size` of value `12` supplied to `SvgIcon`, expected one of [null,null].
    at http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:8091:22
    at ArrowTriangleUpDownIcon
    at div
    at div
    at span
    at DateSelect2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:7004:35)
    at div
    at div
    at div
    at div
    at MonthView (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:13921:45)
    at Month2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:14061:35)
    at div
    at div
    at Calendar2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:14234:30)
    at div
    at Picker2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:7004:35)
    at div
    at ZIndex2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/chunk-72TFUQG3.js?v=ead0d31e:99:26)
    at Portal2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:4585:26)
    at RenderInnerContainer2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:4593:29)
    at RenderContainer2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:4624:30)
    at DropdownContainer2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/@skbkontur_react-ui.js?v=d394ca15:4750:34)
    at label
    at CommonWrapper2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/chunk-72TFUQG3.js?v=ead0d31e:99:26)
    at DatePicker2 (http://localhost:3000/@fs/home/eazymov/Documents/Work/Info.UI/node_modules/.vite/deps/chunk-72TFUQG3.js?v=ead0d31e:99:26)
    at Test (http://localhost:3000/admin/index.jsx:25:29)
@Eazymov
Copy link
Contributor Author

Eazymov commented Jun 29, 2022

@JackUait JackUait linked a pull request Jun 29, 2022 that will close this issue
@JackUait
Copy link
Contributor

Привет! Уже решили эту проблему в #2911, пулл-реквест находится на финальной стадии ревью и изменения из него появятся в ближайшем релизе в эту пятницу или следующий понедельник

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants