summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2014-01-29 18:00:47 -0800
committerMatt Watson <mattdangerw@gmail.com>2014-01-29 18:00:47 -0800
commita53ec824e454023b46286324b16015d7e2c8352f (patch)
tree24e7aac17ce212b312617a679e3b17a5ef006519
parent0c01f6b7dea772df6ad1642be5c31dcd3fa06cd1 (diff)
Don't clear other state flags in composite button
When setting a flag on a child widget in composite button, we were accidentally clearing all other flags on the child widget. So on mouse press on a category button, when both ACTIVE and PRELIGHT flags are set, we would clear the PRELIGHT flag when setting ACTIVE. So our arrow button would disappear during mouse press [endlessm/eos-sdk#537]
-rw-r--r--wikipedia/widgets/composite_button.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikipedia/widgets/composite_button.js b/wikipedia/widgets/composite_button.js
index 71fb559..2fb0666 100644
--- a/wikipedia/widgets/composite_button.js
+++ b/wikipedia/widgets/composite_button.js
@@ -47,7 +47,7 @@ const CompositeButton = new Lang.Class({
// accordingly
let myFlag = myFlags & flag;
if (myFlag !== 0)
- child.set_state_flags(flag, true);
+ child.set_state_flags(flag, false);
else
child.unset_state_flags(flag);