Jan 30, 2019, 11:36 AM
Change Listeners
Hi!
I have two textfields with change-listeners. Why these triggers work at the same time?
I have two textfields with change-listeners. Why these triggers work at the same time?
X.Container()
.Items(
X.Container()
.Items(
X.NumberField()
.MinValue(0)
.FieldLabel("field_1")
.LabelWidth(110)
.Name("f1Name")
.Flex(1)
.Listeners(ls =>
{
ls.Change.Handler = "console.log('f1')";
})
),
X.Container()
.Items(
X.TextField()
.FieldLabel("field_2")
.LabelWidth(110)
.Name("f2Name")
.Flex(1)
.Listeners(ls =>
{
ls.Change.Handler = "console.log('f2')";
})
)
)
When i change field f2Name i see in console both "f1" and "f2"
Last edited by Bogdan; Jan 30, 2019 at 12:13 PM.