Change event on data-role="input" not triggered

General issues related to the use of Metro 4
Post Reply
ggail
Posts: 1
Joined: Sat Jun 02, 2018 12:27 am
Status: Offline

Change event on data-role="input" not triggered

Post by ggail » Sat Jun 02, 2018 12:32 am

Hi all,

It seems like the change event in an element with data-role="input" is not triggering

<input type="text" id="address" data-role="input" data-on-change="alert(1)" />
Does not show an alert after editing its value

Thanks in advance,

User avatar
olton
Site Admin
Posts: 114
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Sat Jun 02, 2018 12:44 am

Metro 4 Input control does not have an attribute data-on-change and event, linked with this attribute. You must use standard event onchange

Post Reply