How do I duplicate the appinline profile
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 3
- Joined: 05 Feb 2019, 22:34
I duplicated the appinline profile. Js but whenever I click on one of it, the other opens too, please how do I fix this?
Hi,
Could you check inlineProfileActive props for the inline profile? If both are the same, please change one of them and function. Like as;
Could you check inlineProfileActive props for the inline profile? If both are the same, please change one of them and function. Like as;
Code: Select all
this.onInlineProfileClick = this.onInlineProfileClick.bind(this);
this.onInlineProfileClick2 = this.onInlineProfileClick2.bind(this);
Code: Select all
<AppInlineProfile inlineProfileActive={this.state.inlineProfileActive} onInlineProfileClick={this.onInlineProfileClick}/>}
<AppInlineProfile inlineProfileActive={this.state.inlineProfileActive2} onInlineProfileClick={this.onInlineProfileClick2}/>}
Code: Select all
onInlineProfileClick(event) {
this.inlineProfileClick = true;
this.setState({inlineProfileActive: !this.state.inlineProfileActive});
if(this.isSlim() && !this.isMobile()) {
if (!this.menuClick) {
this.setState({menuActive: false})
this.hideOverlayMenu();
}
this.menuClick = false;
}
}
onInlineProfileClick2(event) {
this.inlineProfileClick = true;
this.setState({inlineProfileActive2: !this.state.inlineProfileActive2});
if(this.isSlim() && !this.isMobile()) {
if (!this.menuClick) {
this.setState({menuActive: false})
this.hideOverlayMenu();
}
this.menuClick = false;
}
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests