Skip to content

Commit fbb7597

Browse files
committed
Bug fix
1 parent f810ad0 commit fbb7597

File tree

4 files changed

+84
-81
lines changed

4 files changed

+84
-81
lines changed

package-lock.json

Lines changed: 78 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "popover-plugin",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "A javascript plugin for popover",
55
"scripts": {
66
"start": "webpack --mode development --watch",

src/popover.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,10 @@ export class PopoverComponent {
396396
}
397397

398398
afterShow() {
399-
DomUtils.removeClass(this.$popover, 'pop-comp-disable-events');
399+
/** using setTimeout to avoid an issue in firefox. show/hide event is calling continuously when showOnHover is enabled */
400+
setTimeout(() => {
401+
DomUtils.removeClass(this.$popover, 'pop-comp-disable-events');
402+
}, 2000);
400403

401404
if (!this.disableUpdatePosition) {
402405
this.addScrollEventListeners();

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
44
const TerserPlugin = require('terser-webpack-plugin');
55
const FileManagerPlugin = require('filemanager-webpack-plugin');
66

7-
const banner = `Popover v1.0.4
7+
const banner = `Popover v1.0.5
88
https://sa-si-dev.github.io/popover
99
Licensed under MIT (https://github.com/sa-si-dev/popover/blob/master/LICENSE)`;
1010

0 commit comments

Comments
 (0)