Giter VIP home page Giter VIP logo

react-awesome-modal's People

Contributors

geyang avatar putan avatar shibe97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

react-awesome-modal's Issues

Open Modals by ID

How to open modal with ID like Bootstrap modal? I wanna add two modals in a component.

Thank you.

Accessibility issue

First of all, thanks for this useful tool @shibe97!

During my accessibility tests, I can notice that if user is navigating with Tab, even if modal component is invisible, it stills accessible with Tab key.
I think this is a problem for a real accessibility.

My workaround for the moment :

{this.state.visible &&
  <Modal
    visible={this.state.visible}
  ...
}

Edit : the workaround results a loss of the animation. My solution is to play with tabIndex inside Modal component.

Scroll bar

Please guide me to scroll and view the overflowed content in the modal...

I am able add scroll bar by adding overlay:'scroll' in panel css which is in "fadeInUp.js"

Is there any other way to add scroll bar, because I don't want to change files in node modules.

Closing Modal throws error

Hi,
I am trying to use your modal in my project which uses cerebral.
However when I set the visibility to 0, I get the following error:

Uncaught TypeError: Cannot assign to read only property 'width' of object '#<Object>'
    at Modal.setSize (index.js?4305:78)
    at Modal.componentWillReceiveProps (index.js?4305:54)
    at callComponentWillReceiveProps (react-dom.development.js?cada:9795)
    at updateClassInstance (react-dom.development.js?cada:9974)
    at updateClassComponent (react-dom.development.js?cada:10224)
    at beginWork (react-dom.development.js?cada:10605)
    at performUnitOfWork (react-dom.development.js?cada:12573)
    at workLoop (react-dom.development.js?cada:12682)
    at HTMLUnknownElement.callCallback (react-dom.development.js?cada:1299)
    at Object.invokeGuardedCallbackDev (react-dom.development.js?cada:1338)

I have tried setting the width and height of the Modal in various ways, using state and not. I was wondering if you have any ideas on what might be causing this, and how I can resolve it?
Right now the width and height are set like this;

      <Modal
          visible={modalVisibility}
          width={modalWidth}
          height={modalHeight}
          effect="fadeInUp"
          onClickAway={() => closeModal()}
      >
      </Modal>

widht the modalWidth returning "400" and modalHeight returning "300"

CSS position fixed issue

If the modal is within a div that is styled position: fixed; (e.g. within a fixed nav bar), the input and Link elements on the page (not in the nav bar) become unreachable. This may be because height and width of the modal are set to 100% of the page, with no way to alter them. Thus, the react-awesome-modal cannot be placed inside of a div that has its position fixed to the page.

New to using this npm, so it may be user error!

Datepicker has weird placement indside modal with max-height and scrollable content

I've made a modal with a max height and scroll.
The datepicker is doing something weird, not staying in placement when scrolling inside the modal.
It gets fixed if I remove "max-height" from my modal, but then the design breaks.

Is it possible to make the datepicker fixed to a specific className or something like that?

Watch the video of the weirdness here:
https://www.dropbox.com/s/9rzmci4nxqpj3jo/weirdscroll.mov?dl=0

Thanks!

backdrop element's opacity needs to be animated

At the moment from what I saw in the demo, it looks like the backdrop element is not animated. This makes the appearance sudden despite of the animated entry of the section.

Also, is the leaving animated?

BTW, In my component I tend to use react-motion for all animated appearance and disappearance, this way I don't need to worry about animation at all.

onClickAway() function

Is there anyway you can add a listener on the overlay, to close the modal when I click away?

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.