Code Monkey home page Code Monkey logo

overlay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

overlay's Issues

change this.el to be a normal dom element

i think all view's should expose a regular element as their this.el instead of sometimes being elements and sometimes being jquery-like objects. if they need the shorthand, they can use a private this.$el instead.

let me know what you think @visionmedia and i'll PR this (once some of the other conflicting PRs are merged/closed)

escapable

curious, is the overlay not escapable on purpose? or would it make sense to pull the escapability from dialog into overlay instead?

building my own overlay and wishing escapable was baked in

IE 9 + 10 Bug

Hey,

if you use this great component in IE9 or 10 there is a bug.

Calling the remove method the element is hiding for 2 secounds.
During this time you cant use your website, because the overlay catches all the mouse events.

I dont have a solution for this problem.
Why do we have to wait 2 secounds before removing the element?
Removing it after ~300ms would avoid getting stressed.

Thanks!

(I know, there is no excuse using the IE and I dont use it! ;)

shouldnt assume hide is removing

i dont think it should assume you want to remove the overlay when you are just hiding it.

in my case, adding a modal to the page and it can be opened/closed multiple times. currently i'd have to manually reattach the overlay each time, whereas if i really wanted that functionality i dont think its that hard to do hide().remove()

altho since hiding should be async (animations), it might be better to have it take a callback:

overlay.hide(function () {
  overlay.remove();
});

what do you think? i can PR this functionality if you want it @visionmedia

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.