After clicking facility type filter button when filter dropdown show is enabled, two event handler(onClick of filter button and onClose of dropdown) called at the same time.
The two event handler on here1 and here2
This results in unpredictable random execution. When console logged, it executes onClose handler 50-100 times after second click to facility filter button and finally stops.
Solution applied
Made filter type button disabled when facilityTypeFilterOpen (show dropdown boolean) is true in line
No other solution i could find 😅 , hence other suggestions are welcomed
Proposed Changes
Added disabled attribute to filter button in f58d6fc6b2893f8736ea1364108ec5bec765a158
Fix some warning related to read only input because of use of checked instead of defaultChecked in 250b80aa67c02694af9375473ae348687dc57c59
Co-authored-by: @ProCode2
Issue : #136
Reason behind bug
After clicking facility type filter button when filter dropdown show is enabled, two event handler(
onClick
of filter button andonClose
of dropdown) called at the same time. The two event handler on here1 and here2 This results in unpredictable random execution. When console logged, it executesonClose
handler 50-100 times after second click to facility filter button and finally stops.Solution applied
Made filter type button disabled when
facilityTypeFilterOpen
(show dropdown boolean) is true in line No other solution i could find 😅 , hence other suggestions are welcomedProposed Changes
disabled
attribute to filter button in f58d6fc6b2893f8736ea1364108ec5bec765a158checked
instead ofdefaultChecked
in 250b80aa67c02694af9375473ae348687dc57c59closes #136