Skip to content
This repository
Browse code

[enhance] wbootstrap: do not update class if empty class

  • Loading branch information...
commit 8b7fab0c525c0da1732c8e195c97a612d2a6430b 1 parent 7b59581
Frederic Ye Aqua-Ye authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  stdlib/widgets/bootstrap/bootstrap.opa
2  stdlib/widgets/bootstrap/bootstrap.opa
@@ -735,7 +735,7 @@ WBootstrap = {{
735 735 <ul class="nav">{
736 736 @toplevel.List.map(nav_elt_to_xhtml(true, f), tabs)
737 737 }</ul>
738   - |> Xhtml.update_class(cl, _)
  738 + |> (if String.is_empty(cl) then identity else Xhtml.update_class(cl, _))
739 739 |> (if stacked then Xhtml.update_class("nav-stacked", _)
740 740 else identity)
741 741

0 comments on commit 8b7fab0

Please sign in to comment.
Something went wrong with that request. Please try again.