fixes #6543 (missing slot prop: toggleCallback)

pull/6548/head
mergehez 2024-10-09 22:16:02 +02:00
parent a9df09ece5
commit 1a8c8ee2af
2 changed files with 2 additions and 2 deletions

View File

@ -21584,7 +21584,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>[]",

View File

@ -32,7 +32,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"