Hello developers
I have a weird situation with one combo box. I have a local variable assigned to it, and the default value of this variable is -1. Also, the combo box has one value within the "special list property" that reads "choose product" and the value is -1. In the on change event of this combo box, I can observe with the debugger that when I change the value of my combo box, it's behavior is ok, and the variable assigned to the combo box is updated without problem. Now... if I choose the first value of the combo box (the first value is "choose product", with -1 value of the special list property), the variable assigned to the combo box is 0 instead of -1. This is a big issue, because 0 value already exists in the combo box and is the second item. If I do an HTML inspection of the page, I find that the first value of the combo box is "__ossli_-1", not even -1, and when it is chosen, the variable assigned to the Combo Box is 0.
Why this strange behavior? How can I solve it???
Thank you!
I have a weird situation with one combo box. I have a local variable assigned to it, and the default value of this variable is -1. Also, the combo box has one value within the "special list property" that reads "choose product" and the value is -1. In the on change event of this combo box, I can observe with the debugger that when I change the value of my combo box, it's behavior is ok, and the variable assigned to the combo box is updated without problem. Now... if I choose the first value of the combo box (the first value is "choose product", with -1 value of the special list property), the variable assigned to the combo box is 0 instead of -1. This is a big issue, because 0 value already exists in the combo box and is the second item. If I do an HTML inspection of the page, I find that the first value of the combo box is "__ossli_-1", not even -1, and when it is chosen, the variable assigned to the Combo Box is 0.
Why this strange behavior? How can I solve it???
Thank you!