What problem does this feature solve?
As we use a form in Modal, If validation not passed, do not close the Modal automatic.
What does the proposed API look like?
add a attribute: auto-close Boolean
when auto-close is false, offer an argument for example close in is-ok callback. The modal will not be closed automatic util the user calls close method.
2条答案
按热度按时间yhxst69z1#
Hi, indeed we would need the modal to be controllable under this kind of occasion. However, it is also very important to make most of the modules "decoupled" for a better maintenance capability. Therefore, the Form and the Modal should not have a communication mediator inevitably.
But, you could still control the modal by using the Form's in-build method to achieve the effect.
Example
@SergioCrisostomo
uplii1fm2#
related #2364