[Bug] Custom multi-select counter showing incorrect count in RP9.0

bug-report

#1

Custom Multi-select Dropdown.rp (60.5 KB)

Custom multi-select counter showing incorrect count in RP9.0. PFA. Any help is appreciated. Thank you!


Debugging: Counter adds 2 instead of 1, string width not updating
#2

Hi!

What you’ve found is a serious bug. Selecting/unselecting a checkbox via the Select command causes checkbox to receive any selection event twice, whereas clicking the checkbox itself properly sends the event just once.

Repro


#3

Hi guys! I took a look at the file and as josephxbrick pointed out this looks like a bug; the miscount is coming from the OnSelectedChange event being triggered twice when you toggle the “Select All” checkbox. I’ve gone ahead and filed this bug on our end for further investigation and fixing. In the meantime, as a workaround you can have the “Select All” checkbox apply a “Set Variable” action that sets your “counter” variable to a hard-coded value (“3” or “0”) so that it displays the correct number of selected checkboxes.

Hopefully that helps!


#4

Thanks josephxbrick for your review and finding. I had no idea this could be a bug.


#5

Thanks Alyssa for the workaround. I will go ahead with this solution for now.


closed #6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.