Hi guys,
In my use case, I have a Form with 2 EuiComboBox. Both combo boxes can't have the same fields, but have the same options. So when i change one combo box, the options can't show anymore the selected value previously.
For example:
let options = [{"label": "a"}, {"label": "b"}, "{label": "c"}, {"label": "d"}];
let comboBox_1_fields = [];
let comboBox_2_fields = [];
In combo box 1 I choose label "a"
, so:
possibleOptions = [{"label": "b"}, "{label": "c"}, {"label": "d"}];
comboBox_1_fields = [{"label": "a"}];
let comboBox_2_fields = [];
Then I choose label b
in combo box 2:
possibleOptions = ["{label": "c"}, {"label": "d"}];
comboBox_1_fields = [{"label": "a"}];
let comboBox_2_fields = [{"label": "b"}];
Finally, i remove label a
from combo box 1:
possibleOptions = [{"label": "a"}, "{label": "c"}, {"label": "d"}];
comboBox_1_fields = [];
let comboBox_2_fields = [{"label": "b"}];
Can anyone help me with this?