Bug: Stock Item onChangeSelection Selection Mode = 1
Posted: 04 July 2020, 22:50
There is a potential bug with the onChangeSelection event that is triggered with Selection Mode = 1 (single item only mode).
If you select an item the event is triggered - no problem.
If then you select a different item, the event is triggered 2 times, firstly the 'item_id' argument is undefined. Presumably this is the previous selected item giving a ghost call. The 2nd call is OK.
If you deselect first, then it's OK.
If you click a single item repeatedly then this behaviour is OK, an argument is always given.
If you select an item the event is triggered - no problem.
If then you select a different item, the event is triggered 2 times, firstly the 'item_id' argument is undefined. Presumably this is the previous selected item giving a ghost call. The 2nd call is OK.
If you deselect first, then it's OK.
If you click a single item repeatedly then this behaviour is OK, an argument is always given.