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 11, 2018. It is now read-only.
Hello. I don't know why FluentBootstrap have weird behavior when using partial views (maybe, because of using using construct in a parent view)
When i pass ComponentWrapper to partial (and MvcBootstrapHelper, just in case) and using it in partial, i get:
Code: (I know that code was in #49 issue, but here it will come in handy)
<navrole="navigation" id="navbar" class="navbar navbar-default navbar-fixed-top navbar-inverse"><divclass="container-fluid"><divclass="navbar-header"><ahref="/" class="navbar-brand">Brand</a><buttontype="button" data-toggle="collapse" aria-expanded="false" data-target="#navbar-collapse" class="navbar-toggle collapsed"><spanclass="sr-only">Toggle Navigation</span><spanclass="icon-bar"></span><spanclass="icon-bar"></span><spanclass="icon-bar"></span></button></div><divid="navbar-collapse" class="navbar-collapse collapse"><!-- This code produced by Layout and it's ok --><ulclass="nav navbar-nav navbar-left"><li><ahref="/">Main</a></li><li><ahref="/Products">Products</a></li></ul><!-- And this code produced by partial and it's weird (look at li elements that outside ul) --><ulclass="nav navbar-nav navbar-right"></ul><li><ahref="/Account/Register" id="register-link">Register</a></li><li><ahref="/Account/Login" id="login-link">Login</a></li></div></div></nav>
and sorry for my not good (bad, for now) english
The text was updated successfully, but these errors were encountered:
Very interesting - thanks for the reproducible case. If I had to guess off the top of my head, I think this is probably caused by the state stack getting messed up after passing to the partial (FluentBootstrap attempts to keep a stack of all the components you've started so that it can crawl up to get information about the current state).
In any case, hopefully I'll have a chance to dig into this problem soon.
Nothing yet - I took an hour or so recently to look at this, but wasn't able to figure out what was going on. I still haven't had a large block of time to dig deeper.
Have you had any new insights into this issue? I've started to take a look a couple of times but haven't been able to reproduce the problem (probably due to not having the full environment you're using)...
daveaglick
changed the title
Partial views
Strange rendering behavior in partial views
Jun 15, 2016
Hello. I don't know why FluentBootstrap have weird behavior when using partial views (maybe, because of using
using
construct in a parent view)When i pass ComponentWrapper to partial (and MvcBootstrapHelper, just in case) and using it in partial, i get:
Code: (I know that code was in #49 issue, but here it will come in handy)
Further goes html code (nav):
and sorry for my not good (bad, for now) englishThe text was updated successfully, but these errors were encountered: