How do I duplicate the appinline profile

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
princetoka
Posts: 3
Joined: 05 Feb 2019, 22:34

14 Apr 2020, 16:36

I duplicated the appinline profile. Js but whenever I click on one of it, the other opens too, please how do I fix this?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

26 Apr 2020, 23:10

Hi,
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;
		}
	}

Post Reply

Return to “Babylon - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest