-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Add attribute draggable to images created with gatsby-image #4631
Comments
Hmmm yeah, we're not passing down additional attributes like this gatsby/packages/gatsby-image/src/index.js Line 384 in 47a35aa
Would you be interested in creating a PR to fix this? You can follow the pattern for passing in extra props described here https://reactjs.org/warnings/unknown-prop.html |
Sure, I'll give it a try. It might take me some time, because I'm not very experienced with react. |
I'd like to try and help with this if it's still not fixed @KyleAMathews @guayom |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
@ajayns Are you still interested in that issue? If not, I would like to fix that 😄 |
Please do go ahead @xxczaki |
Does anyone have a workaround for this in the meantime? Tried putting the user-drag: none on the wrapping div and the image still seems to drag. |
@bargangilo you can use |
Closed by #14738 |
Description
I can't find the way to add the attribute
draggable="false"
to images with gatsby-imageSteps to reproduce
This markup creates image tags that don't have the attribute "draggable"
Expected result
I would expect to have a way to add the attribute "draggable" to images created with gatsby-image.
Actual result
The only way I found, was to add it via css on a container div (I'm using styled components):
Environment
npm list gatsby
): gatsby@1.9.112gatsby --version
): 1.1.11File contents (if changed):
gatsby-config.js
:package.json
:The text was updated successfully, but these errors were encountered: