You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation of the components's "Pass through" tab, PT Options are not showing up.
After some digging I found that this code in components/doc/DocApiTable.vue was the issue: <span v-if="v?.includes('<a')" :id="id + '.' + k" class="doc-option-description" v-html="v"> </span>
An alternative to fix the bug would be checking that v is a string: <span v-if="typeof v === 'string' && v?.includes('<a')" :id="id + '.' + k" class="doc-option-description" v-html="v"> </span>
jorgemunozc
changed the title
Documentation: PT Options not showing in any component
Documentation: PT Options not showing in any component on the web docs.
Oct 12, 2023
Describe the bug
In the documentation of the components's "Pass through" tab, PT Options are not showing up.
After some digging I found that this code in components/doc/DocApiTable.vue was the issue:
<span v-if="v?.includes('<a')" :id="id + '.' + k" class="doc-option-description" v-html="v"> </span>
An alternative to fix the bug would be checking that
v
is a string:<span v-if="typeof v === 'string' && v?.includes('<a')" :id="id + '.' + k" class="doc-option-description" v-html="v"> </span>
Reproducer
https://primevue.org/checkbox/#pt.doc.checkbox
PrimeVue version
3.36.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: