Git Product home page Git Product logo

Comments (12)

RathaGit avatar RathaGit commented on July 17, 2024 3

Add the following line of code before your close body tag:

<script type="text/javascript">
$(document).ready(function() {
    $(".inset-0").delay(2500).fadeOut(300);
});
</script>

from laravel-notify.

RobHowdle avatar RobHowdle commented on July 17, 2024 2

I still couldn't get this to work. I am using Laravel 9 and the notification just stays there no matter the timeout value I set. @RathaGit fix worked for me thankfully but perhaps if there is a specific way this should be done within the package the documentation should get updated to show this?

from laravel-notify.

mckenziearts avatar mckenziearts commented on July 17, 2024 1

New release publish. More details here https://github.com/mckenziearts/laravel-notify/releases/tag/v2.2

from laravel-notify.

matthbon avatar matthbon commented on July 17, 2024

Also not auto closing for me. Using Laravel 7.

Would be nice to set a timeout for how long it should stay and then auto close.

from laravel-notify.

titusfrezer avatar titusfrezer commented on July 17, 2024

not worked here also

from laravel-notify.

daniel-farina avatar daniel-farina commented on July 17, 2024

Same here, investigating...

from laravel-notify.

milantarami avatar milantarami commented on July 17, 2024

"laravel/framework": "^8.12" fired twice and does't auto close

from laravel-notify.

kgp43 avatar kgp43 commented on July 17, 2024

"laravel/framework": "^8.12" fired twice and does't auto close

Same here

from laravel-notify.

kgp43 avatar kgp43 commented on July 17, 2024

Project not updated in 6 months and others reporting the same issue.
Guess we need to look for something else.

from laravel-notify.

mwamodo avatar mwamodo commented on July 17, 2024

Add the following line of code before your close body tag:

<script type="text/javascript">
$(document).ready(function() {
    $(".inset-0").delay(2500).fadeOut(300);
});
</script>

Does not work for me

from laravel-notify.

krismanning avatar krismanning commented on July 17, 2024
I had the same problem. 

Using Laravel 9, tailwind 3, Livewire 2, alpine 3.

I removed @notifyjs and replaced with this. All it seems to do is load Alpine which was already being loaded by Livewire.

<script type="text/javascript">
        e = document.querySelector("div.notify");
        if(e) {
           setTimeout(function(){ e.style.display = 'none'}, 5000);
        }
</script>

from laravel-notify.

dharmik225 avatar dharmik225 commented on July 17, 2024

image

Does not auto close in livewire3 with "wire.navigate"

from laravel-notify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.