Skip to content

Commit aaf2cc0

Browse files
committed
close menu when going to another tradition page (#1016)
1 parent 882bb35 commit aaf2cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ export function top_right_menu(that,etextTitle,backUrl,etextres,isMirador,locati
12371237
innerNav = (
12381238

12391239
<div className="inner-nav">
1240-
{ ["bo","pi","sa","zh"].map(t => <div><Link className={that.props.tradition === t ? "active": ""} to={"/tradition/"+t+"/"}>{I18n.t("tradition."+t+"T")}</Link></div>) }
1240+
{ ["bo","pi","sa","zh"].map(t => <div><Link onClick={() => that.state.collapse.burgerOn && that.setState({collapse:{...that.state.collapse, burgerOn:false}})} className={that.props.tradition === t ? "active": ""} to={"/tradition/"+t+"/"}>{I18n.t("tradition."+t+"T")}</Link></div>) }
12411241
</div>
12421242
),
12431243
innerSearch = (

0 commit comments

Comments
 (0)