Skip to content

Commit

Permalink
Update ui-component-ctrl.js - process msg.resetSearch
Browse files Browse the repository at this point in the history
If resetSearch is present in msg, clear user searchTerm input in dropdown select ui component.
  • Loading branch information
DanielsNoJack authored Aug 28, 2023
1 parent dc43a79 commit 7d78ef0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ui-component/ui-component-ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ angular.module('ui').controller('uiComponentController', ['$scope', 'UiEvents',

// may add additional input processing for other controls
var processDropDownInput = function (msg) {
// If resetSearch is present, clear user searchTerm input
if (msg && msg.resetSearch) {
me.searchTerm = "";
}
// options should have the correct format see beforeEmit in ui-dropdown.js
if (msg && msg.isOptionsValid) {
me.item.options = msg.newOptions;
Expand Down

0 comments on commit 7d78ef0

Please sign in to comment.