# Overriding on clicked event in widget is not working in 4.26.2

**URL:** <https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805>\
**Category:** UI\
**Tags:** override, click-event, parent-class, unreal-engine, UE4-26, Widget, question\
**Created:** [July 6, 2021, 8:04am UTC](https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805 "2021-07-06T08:04:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwhhy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bwhhy](https://forums.unrealengine.com/u/bwhhy)\
**Post date:** [July 6, 2021, 8:04am UTC](https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805/1 "2021-07-06T08:04:12Z")

</div>

Hi,

I just found that the on clicked event can not override in UE 4.26.2.

Here is related question I posted:

> **[How to override the on clicked event in derived widget bp?](https://forums.unrealengine.com/questions/1038842/view.html)**
>
> Hi, I have a user widget A that has a button with on clicked event. Then I created a blueprint B based on A and wish to override the execution steps triggered by the on clicked event. However, it always use the A version and none of the steps in B...

How to reproduce:

1. Create a Widget Blueprint “WidgetA”, add a button with on clicked event and print string “Base”

2. Create a New Blueprint "WidgetB"and in the popup window pick the parent class to “WidgetA”.

3. Override the on clicked event and print string “Derived”.

4. Add the widget in the viewport, and click the button.

In 4.24 or 4.25:  
It will print “Derived” when WidgetB is created.

In 4.26.2:  
It will print always “Base” no matter WidgetA or WidgetB is created.

And the extra finding in 4.26.2 is if I duplicate the WidgetA first to WidgetA\_Dup, then in WidgetA\_Dup, delete the items in designer hierarchy, manually change its parent to WidgetA, override the OnClicked will work.

 ![343319-155758.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/6/ab6dfd62450f04fc129a2469884f69637837c0b3.png)

 ![343320-155835.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/8/318222447ab1692d4b051756ff84c9af2387f40b.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 8:31am UTC](https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805/2 "2021-07-06T08:31:28Z")

</div>

The form is here:

[https://epicsupport.force.com/unrealengine/s/?language=en\_US](https://epicsupport.force.com/unrealengine/s/?language=en_US)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 6, 2021, 8:33am UTC](https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805/3 "2021-07-06T08:33:03Z")

</div>

Before posting in the previous thread, I actually dug around a bit in the DB for a related bug but could not find anything that lined up with this.

---

<div class="post-metadata">

**Author:** ![bwhhy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bwhhy](https://forums.unrealengine.com/u/bwhhy)\
**Post date:** [July 7, 2021, 2:47am UTC](https://forums.unrealengine.com/t/overriding-on-clicked-event-in-widget-is-not-working-in-4-26-2/485805/4 "2021-07-07T02:47:02Z")

</div>

Just submitted. Thanks for the notice!
