You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
The UDSideNavItem with the OnClick parameter doesnt work correctly. It just does nothing when clicked.
Example to try and reproduce:
$Page1=New-UDPage-Name "Page Name"-Content { New-UDCard-Id 'page-1' }
$Page2=New-UDPage-Name "Page Name 2"-Content { New-UDCard-Id 'page-2' }
$Navigation=New-UDSideNav-Endpoint {
New-UDSideNavItem-Text "My First Page"-OnClick { Show-UDModal-Content { New-UDCard-Id "ModalCard" } } -Icon group
} -Fixed
$db=New-UDDashboard-Title "Navigation"-Pages @($Page1,$Page2) -Navigation $NavigationStart-UDDashboard-Dashboard $db-Port 12312
Theres an error in the chrome JS console:
react-dom.production.min.js:21 Uncaught ReferenceError: item is not defined
at t.value (ud-navigation.jsx:122)
at Object. (react-dom.production.min.js:14)
at f (react-dom.production.min.js:15)
at react-dom.production.min.js:15
at x (react-dom.production.min.js:17)
at S (react-dom.production.min.js:18)
at T (react-dom.production.min.js:18)
at A (react-dom.production.min.js:21)
at Mn (react-dom.production.min.js:84)
at As (react-dom.production.min.js:250)
The text was updated successfully, but these errors were encountered:
Hey
The UDSideNavItem with the OnClick parameter doesnt work correctly. It just does nothing when clicked.
Example to try and reproduce:
Theres an error in the chrome JS console:
The text was updated successfully, but these errors were encountered: