telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.91k forks source link

DropDownList.toggle() method TypeScript declaration #6849

Closed Rus7am closed 6 months ago

Rus7am commented 2 years ago

Bug report

DropDownList.toggle() method TypeScript declaration requires a parameter:

toggle(toggle: boolean): void;

but it's not required in the documentation and in reality.

Environment

ag-petrov commented 6 months ago

Actually a parameter can be passed to the function and it is optional. We should update our docs and definitions to reflect this. If a boolean value is passed to the method determine whether to open/close the popup. For example in the case where true is passed the popup will always be opened.