Skip to content

Feat/input legacy method fix #1090

Merged
merged 9 commits into from
Mar 27, 2020
Merged

Feat/input legacy method fix #1090

merged 9 commits into from
Mar 27, 2020

Conversation

aso1datov
Copy link
Contributor

Мотивация и контекст

Изменение lifecycle в рамках задачи #911

Исправлено поведение поля ввода при фокусе в CalendarInput аналогично Input.

@coveralls
Copy link

coveralls commented Mar 2, 2020

Coverage Status

Coverage decreased (-0.01%) to 85.14% when pulling 3d26939 on feat/input-legacy-method-fix into c14f914 on master.

@@ -262,6 +279,13 @@ export class Input extends React.PureComponent<InputProps> {
resetError: true
};

componentDidUpdate(prevProps: InputProps) {
Copy link
Contributor

@bamaboy bamaboy Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А не думал заменить на getDerivedStateFromProps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думал, но там трабл возникает, когда одно и то же поле меняется и из проспов и из стейта

@stepancar stepancar merged commit 1ecb020 into master Mar 27, 2020
@delete-merged-branch delete-merged-branch bot deleted the feat/input-legacy-method-fix branch March 27, 2020 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants