fluentui-blazor icon indicating copy to clipboard operation
fluentui-blazor copied to clipboard

[Dialog] Add event before closing panel to allow validation of the data provided by the user

Open diegomodolo opened this issue 5 months ago β€’ 15 comments

…ta. (#1508)

Pull Request

πŸ“– Description

I've added functionality to prevent the panel from closing if rules defined by the user don't pass. I've added a func that will be called when the user clicks the button to commit the changes (won't be called on cancel or dismiss), and that func will return true or false, accordingly to the user validation rules. image

🎫 Issues

#1508

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

βœ… Checklist

General

  • [ ] I have added tests for my changes.
  • [X] I have tested my changes.
  • [X] I have updated the project documentation to reflect my changes.
  • [X] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • [ ] I have added a new component
  • [ ] I have added Unit Tests for my new component
  • [X] I have modified an existing component
  • [ ] I have validated the Unit Tests for an existing component

⏭ Next Steps

diegomodolo avatar Sep 03 '24 18:09 diegomodolo