Skip to content

Commit 92bef29

Browse files
authored
Fix issue with disabling stopOnFocus feature (#28)
1 parent 4c03949 commit 92bef29

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All the changes made to toastify-js library.
44

5+
## [1.6.1] - 2019-06-29
6+
7+
* Bugfix: Disabling `stopOnFocus`
8+
59
## [1.6.0] - 2019-06-29
610

711
* **Deprecation Warning**: Migrating from `positionLeft` property to `position`

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)
44
![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)
55

6-
[![toastify-js](https://img.shields.io/badge/toastify--js-1.6.0-brightgreen.svg)](https://www.npmjs.com/package/toastify-js)
6+
[![toastify-js](https://img.shields.io/badge/toastify--js-1.6.1-brightgreen.svg)](https://www.npmjs.com/package/toastify-js)
77

88
Toastify is a lightweight, vanilla JS toast notification library.
99

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "toastify-js",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description":
55
"Toastify is a lightweight, vanilla JS toast notification library.",
66
"main": "./src/toastify.js",

src/toastify.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Toastify js 1.6.0
2+
* Toastify js 1.6.1
33
* https://github.com/apvarun/toastify-js
44
* @license MIT licensed
55
*

src/toastify.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Toastify js 1.6.0
2+
* Toastify js 1.6.1
33
* https://github.com/apvarun/toastify-js
44
* @license MIT licensed
55
*
@@ -18,7 +18,7 @@
1818
return new Toastify.lib.init(options);
1919
},
2020
// Library version
21-
version = "1.6.0";
21+
version = "1.6.1";
2222

2323
// Defining the prototype of the object
2424
Toastify.lib = Toastify.prototype = {
@@ -52,7 +52,7 @@
5252
this.options.backgroundColor = options.backgroundColor; // toast background color
5353
this.options.avatar = options.avatar || ""; // img element src - url or a path
5454
this.options.className = options.className || ""; // additional class names for the toast
55-
this.options.stopOnFocus = options.stopOnFocus || true; // stop timeout on focus
55+
this.options.stopOnFocus = options.stopOnFocus === undefined? true: options.stopOnFocus; // stop timeout on focus
5656

5757
// Returning the current object for chaining functions
5858
return this;

0 commit comments

Comments
 (0)