Hi, I found an issue in the popover plugin.
In the plugin definition, a data variable is filled with $this.data('bs.popover');. Then, just below, a check is performed:
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
Which means: if no popover was instantiated before, then create a new one.
The issue in my prefixed code is that the data assignation was prefixed, like
$this.data('bs.tb-popover')
but the creation was not, like the following
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
which caused a new popover to be created on top of the previous one at every toggle.
I would be really glad to submit a pull request but I have no experience coding in python, and I have actually no opinion (nor any clue) about whether data attributes used by jQuery should be prefixed or not.
Hi, I found an issue in the popover plugin.
In the plugin definition, a
datavariable is filled with$this.data('bs.popover');. Then, just below, a check is performed:if (!data) $this.data('bs.popover', (data = new Popover(this, options)))Which means: if no popover was instantiated before, then create a new one.
The issue in my prefixed code is that the data assignation was prefixed, like
but the creation was not, like the following
which caused a new popover to be created on top of the previous one at every toggle.
I would be really glad to submit a pull request but I have no experience coding in python, and I have actually no opinion (nor any clue) about whether
dataattributes used by jQuery should be prefixed or not.