Skip to content

CB-4732 fix: fields auto hide behaviour#2409

Merged
Wroud merged 6 commits intodevelfrom
fix/cb-4732/input-behaviour
Feb 23, 2024
Merged

CB-4732 fix: fields auto hide behaviour#2409
Wroud merged 6 commits intodevelfrom
fix/cb-4732/input-behaviour

Conversation

@Wroud
Copy link
Copy Markdown
Member

@Wroud Wroud commented Feb 22, 2024

No description provided.

@Wroud Wroud requested a review from sergeyteleshev February 22, 2024 11:16
@Wroud Wroud self-assigned this Feb 22, 2024
@Wroud Wroud requested a review from devnaumov February 22, 2024 11:16
let presented = true;

if (isNotNullDefined(value) && isObject(value)) {
presented = isControlPresented(String(name), value, defaultValue);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You pass also a symbol type here converted to string. so it transforms to something like on the screen. Which is probably won't be a part of an object at all

Should we add one more type Symbol to isControlPresented first argument?
And add here one more case where you can pass symbol time without converting it to the string

Снимок экрана 2024-02-22 в 12 57 16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

Comment thread webapp/packages/core-blocks/src/FormControls/useFormStateControl.ts Outdated
@Wroud Wroud merged commit 8c2b2e5 into devel Feb 23, 2024
@Wroud Wroud deleted the fix/cb-4732/input-behaviour branch February 23, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants