Comments (4)
To get the same working as on the demo site, line 4 of NavMenu.razor should be changed to:
<nav class="sitenav" aria-labelledby="main-menu" >
(ie remove the onclick code)
from fluentui-blazor.
@vnbaaij in doing so, the nav won't close at all unless you close it manually. Is there any easy way to only close it when you click on an element which has an href defined?
from fluentui-blazor.
Vincent,
I have a theoretical solution to this problem.
Keep the onclick code in class="sitenav" but have a StopPropagation attribute in FluentNavGroup so that the event is not bubbled up. Therefore for this to work a StopPropagation attribute would be needed in the FluentNavGroup like it is in the FluentKeyCode.
Is this possible? What do you think?
Thanks.
from fluentui-blazor.
@MarvinKlein1508, @coderdnewbie see PR #2183 for a better solution for both demo and template generated sites
from fluentui-blazor.
Related Issues (20)
- FluentMultiSplitter - Collapsed doesn't work with fixed size panel HOT 2
- fix: FluentIcon Class property ignores square brackets after update to 4.8.0 HOT 15
- Microsoft.JSInterop.JSException: element.addEventListener is not a function HOT 1
- fix: `CSSBuilder` removes valid CSS class names provided by external CSS frameworks HOT 2
- fix: Hybrid Blazor Maui is not working HOT 1
- 4.8.1 FluentDatePicker not work HOT 1
- [DataGrid] OnRowClick and SelectColumn together not as expected. HOT 7
- fix: Setting FillColor design token results in [object Object] instead of correct color HOT 1
- fix: Disabled option does not get showed as selected value when @bind-Value is equal disabled one [FluentSelect] HOT 11
- TreeView: Is it possible to have clicking anywhere on the row expand the item? HOT 1
- fix: Skeleton Component in Light Theme HOT 1
- fix: Duplicates IDs if Overflow in [Overflow] HOT 1
- fix: body background color variable HOT 5
- feat: add the ability to lock (frozen) column when scrolling horizontally in DataGrid HOT 1
- fix: FluentSelect fails in SSR forms HOT 8
- Column Headers on FluentGrid Control Do Not Render Properly with Horizontal Scroll HOT 1
- fix: tooltip anchor diamond moves to the center of the tooltip text box in blazor when using default tooltip position HOT 4
- feat: add Color to/in FluentPersona HOT 4
- Column Headers and Rows on FluentGrid Control Lose Style with Horizontal Scroll HOT 4
- The EventCallbacks of the FluentNavGroup not working. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui-blazor.