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

Change event is not triggered, if text() method is used, and when Clear button is clicked to clear the selection #5237

Closed
nenchef opened this issue Aug 28, 2019 · 1 comment
Assignees
Labels
Bug C: ComboBox FP: Completed Sync status with associated Feedback Item jQuery SEV: Medium
Milestone

Comments

@nenchef
Copy link
Contributor

nenchef commented Aug 28, 2019

Bug report

The change event is not triggered if the text() method is used, and when the Clear button is clicked to clear the selection. The change event is properly triggered in the same scenario, but if the value() method is used instead of the text().

Reproduction of the problem

Use the following implementation:

<input id="combobox" />
<script>
$("#combobox").kendoComboBox({
  dataSource: [ "Apples", "Oranges" ],
  change: function(e){console.log("change triggered")}
});

var combobox = $("#combobox").data("kendoComboBox");
combobox.text("Apples");
// if value is used - the change event is triggered

</script>

Run the above code in dojo. Then hit the clear button in the input of the widget.

Current behavior

The change event is not triggered

Expected/desired behavior

The change event should get triggered because an item with the same text exists and it is selected. The change event will trigger if the value() method is used

Workaround

The change event is properly triggered in the same scenario, but if the value() method is used instead of the text().

Environment

  • Kendo UI version: 2019.2.619
  • Browser: [all]
@kendo-bot kendo-bot added the FP: Unplanned Sync status with associated Feedback Item label Aug 28, 2019
@nenchef nenchef added the FP: Planned Sync status with associated Feedback Item label Sep 10, 2019
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item FP: Planned Sync status with associated Feedback Item labels Sep 10, 2019
@veselints
Copy link
Contributor

@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Sep 26, 2019
@mparvanov mparvanov added this to the 2019.R3.SP1 milestone Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: ComboBox FP: Completed Sync status with associated Feedback Item jQuery SEV: Medium
Projects
None yet
Development

No branches or pull requests

4 participants