-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messages dont really disappears #10
Comments
The messages are removed after the opacity animation (fading out) is complete. Using display:none would prevent any animation. I don't understand what problem you're encountering. Can you reproduce the problem with the sample/demo application? What browser/version are you using? |
I have seen similar things happen in one of my applications: I will try to reproduce the problem and then post it here. |
Ok, so as I experienced the problem myself I was able to fix it but unfortunately a Fiddle that I tried to build did not reproduce the error. Maybe I can deliver something later just to get more clarification. I have included the fix in my pull request: #15 |
+1 |
Could you please try my Pull Request and tell me whether that fixes it for you? |
@snrlx I used your pull request in my project and worked fine for me, I checked the element in the dev tools and he is removed from the html |
I'm doing a big app for the company I work for and I'm using this module. The module works fine, the template part is good too and it's very customizable.
But when we come to the
$close()
function we have a problem. When you do this:templateElement.css({'opacity' : 0}).attr('data-closing','true');
You are basicaly keeping the element in the page instead of really hidding or removing him. This may cause some problems with other elements in the same page (it was in my case).
My solution? Change the line above, to this:
templateElement.css({'display' : 'none'}).attr('data-closing','true');
By using
display: none
the element will disappear from the sight and don't will interfere the other elements around him.Just FYI the problem I was having was with the close button in the top right position inside the message. When I had more than 10 messages displayed I was clicking in the button and the click area was changing, so if the user clicked in the close icon, the message didnt closed, only if he moved the mouse a little higher.
The text was updated successfully, but these errors were encountered: