Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Question: onLoad not working? #15

Open
bvelasquez opened this issue Apr 9, 2020 · 1 comment
Open

Question: onLoad not working? #15

bvelasquez opened this issue Apr 9, 2020 · 1 comment

Comments

@bvelasquez
Copy link

bvelasquez commented Apr 9, 2020

I pass onLoad to the component, but it does not work. Curious if this is passed through to the underlying img component?

Using like this:

import Img from "react-exif-orientation-img";

 ...

return (
      <Box>
        <Img
          style={{ maxWidth: "100%", maxHeight: "100%", display: "block" }}
          className="EntryImage"
          src={finalURL}
          alt="url"
          onLoad={event => {
            console.log("Image loaded", event);
          }}
        />
      </Box>
    );
@AbbasNCode
Copy link

I have done the onLoad function before with jquery but you will not need to link jquery to your html.

$(document).ready(function(){ $("#exampleModal").modal("show"); });

Sorry i can't explain how it work but it is easy to figure out, for more help click over here.

Die-Disputes

looking at my code will help you figure it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants