Comments (12)
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.
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.
New release publish. More details here https://github.com/mckenziearts/laravel-notify/releases/tag/v2.2
from laravel-notify.
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.
not worked here also
from laravel-notify.
Same here, investigating...
from laravel-notify.
"laravel/framework": "^8.12" fired twice and does't auto close
from laravel-notify.
"laravel/framework": "^8.12" fired twice and does't auto close
Same here
from laravel-notify.
Project not updated in 6 months and others reporting the same issue.
Guess we need to look for something else.
from laravel-notify.
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.
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.
Does not auto close in livewire3 with "wire.navigate"
from laravel-notify.
Related Issues (20)
- use margin start instead of margin left
- How to show validation error? HOT 2
- How to use with Ajax jquery
- feature/multi-duration
- Error on build
- Not working with Laravel 10 HOT 6
- Uncaught (in promise) type error HOT 5
- Unable to locate a class or view for component [notify-messages]. HOT 6
- Overwrite css HOT 3
- Not an issue: Is there a way to add progress bar?
- Laravel 10 support? HOT 1
- Laravel 11 support? HOT 4
- couldnt install it on laravel 11 HOT 1
- dead project
- Passthrough HTML?
- Call to undefined method Mckenziearts\Notify\LaravelNotify::succces()
- display notification in jquery
- Notify Package Icons HOT 1
- Add Alpine.js animations or ability to customize with Tailwind CSS
- line 98 of readme.md maybe @include('notify::components.notify') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-notify.