10 examples of 'mat-select change event' in JavaScript

Every line of 'mat-select change event' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
38changedSelect(obj) {
39 this.select.emit(obj);
40}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

154function selectChangeEvent(e) {
155
156 // an item has been selected on the regular select we created
157 // check to make sure it's not an IE screwup, and add it to the list
158
159 if(msie > 0 && msie < 7 && !ieClick) return;
160 var id = $(this).children("option:selected").slice(0,1).attr('rel');
161 addListItem(id);
162 ieClick = false;
163 triggerOriginalChange(id, 'add'); // for use by user-defined callbacks
164}
129function selectChangeEvent(e) {
130
131 // an item has been selected on the regular select we created
132 // check to make sure it's not an IE screwup, and add it to the list
133 if(ieVersion() < 7 && !ieClick) return;
134 var id = $(this).children("option:selected").slice(0,1).attr('rel');
135 addListItem(id);
136 ieClick = false;
137 triggerOriginalChange(id, 'add'); // for use by user-defined callbacks
138}
213_emitSelectEvent(option: MatOption): void {
214 const event = new MatAutocompleteSelectedEvent(this, option);
215 this.optionSelected.emit(event);
216}
36function onChange(event) {
37 var elem = event.target,
38 value = self.options[$(elem).prop('selectedIndex')];
39
40 self.eventEmitter.emit('change', value[0]);
41}
269private emitSelectionChangeEvent(isUserInput = false): void {
270 this.onSelectionChange.emit(new McOptionSelectionChange(this, isUserInput));
271}
38setSelection(change: MatCheckboxChange): void {
39 this.isSelected.emit(change.checked);
40}
15function handleSelectChange(e) {
16 if (e && e.target && e.target.value) {
17 handleChange(e.target.value, selectFor);
18 }
19}
28function _change(event) {
29 for ( var i in _callbacks ) {
30 _callbacks[i].call(_doc, event, _doc[hidden]);
31 }
32}
443_listSelectionChange(event) {
444 event.target.items.forEach(item => {
445 this.items.forEach(mcbItem => {
446 if (mcbItem._id === item.getAttribute("data-ui5-token-id")) {
447 mcbItem.selected = item.selected;
448 }
449 });
450 });
451
452 this.fireEvent("selectionChange", { items: this._getSelectedItems() });
453
454 if (!event.detail.selectionComponentPressed && !isSpace(event.detail)) {
455 this._getPopover().close();
456 this.value = "";
457 this.fireEvent("input");
458 }
459}

Related snippets