-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SecurityTrimmedControl remove the wrapping div element that is being returned #325
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
This is related to React which always requires to return one parent element. In React 16 you have fragments that can solve this issue, but as we are currently working with SPFx 1.3.0, it needed to be implemented as a Adding a className property could indeed be a quick solution to solve this. Once we update the project to |
This has been implemented and can be tested out by installing the latest beta version. More information about installing a beta version can be found here: https://sharepoint.github.io/sp-dev-fx-controls-react/beta/ |
Awesome, Thank you Elio! |
This is now included within the |
Category
[ X ] Enhancement
[ ] Bug
[ ] Question
Version
1.13.2
Expected / Desired Behavior / Question
Please either remove the wrapping div element on the render of the secruityTrimmedControl or provide a prop that either accepts styles or a class. If you are building a Flex grid the wrapping div element will break the layout and rendering of the contained elements.
The text was updated successfully, but these errors were encountered: