Closed luizstacio closed 1 year ago
./design-system/react
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 93.57% | 1658/1772 |
π’ | Branches | 83.49% | 364/436 |
π’ | Functions | 83.83% | 223/266 |
π’ | Lines | 94.1% | 1628/1730 |
147 tests passing in 47 suites.
Report generated by π§ͺjest coverage report action from 7167d31ba0a5f6095fe2c62c078cdbf8e6486677
When using the outside state to control isOpen on the drawer, it was impossible to receive the onClose callback to change the state.
This PR fixes it by calling onClose when the state should change to close but is up to the upper state controller to change the state to close as expected.