Notification is not closing


#1

Notification is not closing on clicking on the close button.

var notification = this.$app.notification.create({
                    title: 'John Doe',
                    text: 'Hello, how are you?',
                    closeButton: true,
                    titleRightText: 'titile right text',
                    subtitle: 'subtitle'
                });
                notification.open();

How to close notification?


#2

Go to http://framework7.io/kitchen-sink/?theme=md
Run in developer console:

var notification = app.notification.create({
                    title: 'John Doe',
                    text: 'Hello, how are you?',
                    closeButton: true,
                    titleRightText: 'titile right text',
                    subtitle: 'subtitle'
                });
                notification.open();

Everything works


#3

I followed steps, still, it is not closing.
I don’t know what I’m missing.

I’m using window 7 OS with chrome browser.

If I opened developer console in mobile view then it is working

If I opened developer console in browser view then it is not closing.

:pensive:


#4

Sounds like issue on your side or with browser. Don’t have any issues in both browser/device views. Maybe you have some plugin installed or something else conflicting


#5

I tried this example in Chrome on MAC and it is not working. The notification can not be closed.


#6

I am facing similar issue. Any solutions?


#7

I am using:

var notification = app.notification.create({
                    title: 'John Doe',
                    text: 'Hello, how are you?',
                    closeButton: true,
                    titleRightText: 'titile right text',
                    subtitle: 'subtitle'
                });
notification.open();

It works, I can close at clicking on X icon.
Try to use in in anonymous mode.


#8

I tried it on Windows 7 / Chrome. It works for TouchEvent but not for MouseEvent - it works in device mode but not in desktop mode.