Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Allow to have several elements that use the same target #82

Open
B-Prod opened this issue Feb 14, 2019 · 0 comments
Open

Allow to have several elements that use the same target #82

B-Prod opened this issue Feb 14, 2019 · 0 comments

Comments

@B-Prod
Copy link

B-Prod commented Feb 14, 2019

Currently it is not possible to have two elements that target the same canvas. In such case, only the first processed element may open the canvas, the other element is ignored.

Example code that fails:

<button class="offcanvas-toggle" data-toggle="offcanvas" data-target="#js-bootstrap-offcanvas-example">Click me</button>

<button class="offcanvas-toggle" data-toggle="offcanvas" data-target="#js-bootstrap-offcanvas-example">Click me too</button>

<div id="js-bootstrap-offcanvas-example">I am the offcanvas content</div>

The expected behaviour would be to have the canvas being opened by any buttons that have the correct target.

B-Prod added a commit to B-Prod/Bootstrap-Offcanvas that referenced this issue Feb 14, 2019
Allow to have several elements that use the same target
Issue iamphill#82
B-Prod added a commit to B-Prod/Bootstrap-Offcanvas that referenced this issue Feb 14, 2019
B-Prod added a commit to B-Prod/Bootstrap-Offcanvas that referenced this issue Feb 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant