Skip to content

Commit

Permalink
Merge pull request #6548 from mergehez/datepicker-missing-toggleCallback
Browse files Browse the repository at this point in the history
fixes #6543 (missing slot prop: toggleCallback)
  • Loading branch information
tugcekucukoglu authored Nov 1, 2024
2 parents ba27cfc + 1a8c8ee commit ebd448f
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 @@ -23240,7 +23240,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 @@ -33,7 +33,7 @@
@keydown="onKeyDown"
:pt="ptm('pcInputText')"
/>
<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 ebd448f

Please sign in to comment.