Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Copy button is not indicating the text was copied or not #8958

Open
swethamekaa opened this issue Jun 26, 2023 · 4 comments
Open

Copy button is not indicating the text was copied or not #8958

swethamekaa opened this issue Jun 26, 2023 · 4 comments

Comments

@swethamekaa
Copy link

swethamekaa commented Jun 26, 2023

Swagger-ui:@^4.15.5,
react:@^17.0.2

SwaggerUI({
spec,
domNode: swaggerRef.current,
defaultModelsExpandDepth: 1,
defaultModelExpandDepth: 10,
docExpansion: 'list',
plugins: swaggerPlugins,
showExtensions: !!config.swagger.showExtensions,
});

Screenshots

swagger

@swethamekaa
Copy link
Author

How to customize this ,,, can anyone guide me how to customize this?

@Teraskull
Copy link

@swethamekaa I believe the issue is linked to this: #9094.

The button click is not registered. Maybe that's why your text message is not rendered.

@swethamekaa
Copy link
Author

@Teraskull thank you for your valuable time, here we are using the swagger-ui:4.19.1 .
one approach -- modify the source code -this is not recommended approach right?
other approach -- using a custom plugin

with the custom plugin is it possible to achieve this?

@Teraskull
Copy link

@swethamekaa I don't think there is a plugin for that. Better just modify the source code or write a userscript.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants