Skip to content

Text component's validation is not working #456

@ZhouAn0719

Description

@ZhouAn0719

Version
2022-06-15 17:00:00

  • @sunmao-ui/arco-lib@0.3.0-alpha.3
  • @sunmao-ui/chakra-ui-lib@0.5.0-alpha.3
  • @sunmao-ui/editor-sdk@0.3.0-alpha.3
  • @sunmao-ui/editor@0.7.0-alpha.3
  • @sunmao-ui/runtime@0.7.0-alpha.3

Reproduction link

Steps to reproduce

  1. open the modal which contains the text component, everything is just fine.
    image

  2. close the modal and open it again.
    image

What is expected?

What is actually happening?
The problem seems to have something to do with modal's behavior 'Destroy On Hide':
image
validation works fine if 'Destroy On Hide' is set to false.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghotfix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions