# Button mouseReleased action still works when button disabled

**URL:** <https://forum.inductiveautomation.com/t/button-mousereleased-action-still-works-when-button-disabled/57413>\
**Category:** Ignition\
**Created:** [March 21, 2022, 2:17pm UTC](https://forum.inductiveautomation.com/t/button-mousereleased-action-still-works-when-button-disabled/57413 "2022-03-21T14:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [March 21, 2022, 2:17pm UTC](https://forum.inductiveautomation.com/t/button-mousereleased-action-still-works-when-button-disabled/57413/1 "2022-03-21T14:17:44Z")

</div>

Hi  
Small thing but it bugs me - If button property “Enabled” is FALSE then the code behind does not execute but when the same code is behind mouse released event handler is executes regardless Enabled property. Is it normal behaviour because it surprised me:(

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 21, 2022, 2:19pm UTC](https://forum.inductiveautomation.com/t/button-mousereleased-action-still-works-when-button-disabled/57413/2 "2022-03-21T14:19:30Z")

</div>

Yes, this is normal. All of the mouse events work regardless of the component’s enabled status. It’s `actionPerformed` that requires the component be enabled.

---

<div class="post-metadata">

**Author:** ![hewking32](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hewking32](https://forum.inductiveautomation.com/u/hewking32)\
**Post date:** [March 21, 2022, 2:20pm UTC](https://forum.inductiveautomation.com/t/button-mousereleased-action-still-works-when-button-disabled/57413/3 "2022-03-21T14:20:41Z")

</div>

thanks Kevin for super quick answer
