Skip to content
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

fill-request-fields-with-example = false not working #1073

Open
christianswanepoel opened this issue Feb 4, 2025 · 0 comments
Open

fill-request-fields-with-example = false not working #1073

christianswanepoel opened this issue Feb 4, 2025 · 0 comments

Comments

@christianswanepoel
Copy link

Unable to Remove "FILL EXAMPLE" and "CLEAR" Buttons

Description
I am trying to remove the "FILL EXAMPLE" and "CLEAR" buttons in RapiDoc. According to the documentation, setting:
<rapi-doc fill-request-fields-with-example="false"></rapi-doc>
should disable the "FILL EXAMPLE" button, but it has no effect.

I also tried adding custom CSS and JavaScript to my HTML to hide the buttons, but they had no effect.

Steps to Reproduce

  1. Load RapiDoc using: <script type="module" src="https://unpkg.com/rapidoc@latest/dist/rapidoc-min.js"></script>
  2. Add the <rapi-doc> component with fill-request-fields-with-example="false".
  3. Observe that the "FILL EXAMPLE" and "CLEAR" buttons are still visible.

Expected Behavior

  • Setting fill-request-fields-with-example="false" should remove or disable the "FILL EXAMPLE" button.
  • There should be a way to hide or remove the "CLEAR" button as well.
  • Custom CSS and JavaScript should allow modifications to these buttons.

Actual Behavior

  • Both buttons remain visible despite setting fill-request-fields-with-example="false".
  • Custom CSS and JavaScript do not affect the buttons.

Would appreciate any guidance on resolving this! Thanks in advance.

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

No branches or pull requests

1 participant