notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
647 stars 55 forks source link

[BUG] - backOverlayClickToClose #67

Closed lounge-act closed 1 year ago

lounge-act commented 1 year ago

Describe the bug

option backOverlayClickToClose not working

To Reproduce

Steps to reproduce the behavior:

  1. Importing as required : import Notiflix from 'notiflix'
  2. Initialize as follow: Notiflix.Notify.init({ ID: 'my-project-notice', className: 'my-project-notiflix', fontFamily: 'Poppins', backOverlay: true, backOverlayClickToClose: true, success: { background: '#009b73', textColor: '#d9dce9', notiflixIconColor: 'rgba(0,0,0,0.5)' }, failure: { background: '#ff4b4b', textColor: '#131316', notiflixIconColor: 'rgba(0,0,0,0.5)' }, cssAnimationStyle: 'from-right' })
  3. calling this way Notiflix.Notify.success("my message")

Expected behavior

When I click anywhere in on the overlay, I expect it to close.

Desktop (please complete the following information):

Smartphone (please complete the following information):

not tested on any smartphone

furcan commented 1 year ago

Hello,

backOverlayClickToClose is not an option for the Notify module. https://github.com/notiflix/Notiflix#notiflix-notify-module-default-options

It is for the Report module. https://github.com/notiflix/Notiflix#notiflix-report-module-default-options

Thanks.