Skip to content
Snippets Groups Projects
Commit da4051b4 authored by mathias.chouet's avatar mathias.chouet
Browse files

Résolution bug du bouton "XY / Histogramme" sous les graphiques

parent ee6779b7
No related branches found
No related tags found
No related merge requests found
<div class="btn-group" dropdown (selected)="onSelect($event)">
<div class="btn-group" dropdown (click)="onSelect($event)">
<button dropdownToggle class="btn btn-primary dropdown-toggle waves-light my-1" type="button" mdbRippleRadius>
{{ currentLabel }}
</button>
......
......@@ -30,7 +30,7 @@ export abstract class GenericSelectComponent<T> {
*/
public onSelect(event: any) {
const val = event.target.value;
if (val) {
if (val !== undefined && val !== "") { // might be 0; opening the menu returns ""
this.selectedValue = val;
this._currentLabel = this.selectedLabel;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment