Skip to content

Commit

Permalink
fixes primefaces#6543 (missing slot prop: toggleCallback)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergehez committed Oct 9, 2024
1 parent c1d2b67 commit 425067d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/showcase/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -21484,7 +21484,7 @@
{
"name": "scope",
"optional": false,
"type": "{\n \t <span class=\"ml-3 doc-option-parameter-name\">toggleCallback</span>: <span class=\"doc-option-parameter-type\">(<span class=\"doc-option-parameter-name\">event</span>: Event) &rArr; void</span>, <span class=\"doc-option-parameter-type\">// Toggle function.</span>\n}"
"type": "{\n \t <span class=\"ml-3 doc-option-parameter-name\">toggleCallback</span>: <span class=\"doc-option-parameter-type\">() &rArr; void</span>, <span class=\"doc-option-parameter-type\">// Toggle function.</span>\n}"
}
],
"returnType": "VNode<RendererNode, RendererElement, Object>[]",
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@keydown="onKeyDown"
:pt="ptm('pcInput')"
/>
<slot v-if="showIcon && iconDisplay === 'button' && !inline" name="dropdownbutton">
<slot v-if="showIcon && iconDisplay === 'button' && !inline" name="dropdownbutton" :toggleCallback="onButtonClick">
<button
:class="cx('dropdown')"
:disabled="disabled"
Expand Down

0 comments on commit 425067d

Please sign in to comment.