Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget display '[object Object]' when clear text with the 'text' method #2087

Closed
ggkrustev opened this issue Aug 22, 2016 · 1 comment
Closed

Comments

@ggkrustev
Copy link
Contributor

Bug report

Reproduction of the problem

The widget does not display the optionLabel when reset text with the text method. This is observable only when optionLabel is defined as string.

Repro demo:
http://dojo.telerik.com/oMUse

Expected/desired behavior

The widget should display the "option label" text, not "[object Object]".

Environment

  • Kendo UI version: 2016.2.714
  • jQuery version: 1.9.3+
  • Browser: all
@ggkrustev
Copy link
Contributor Author

The workaround is to clear the text using the value method:
http://dojo.telerik.com/oMUse/2

If you would like to clear just the text, then you can set the content of the html element:
http://dojo.telerik.com/oMUse/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants