Due to an incosistent usage of data('val') and val() the button
fires only after the second click. In order to fix this, we had to
harmonize the usage of the data slot and remove the duplicated event
handler to make sure that the value is changed only once.
Due to an incosistent usage of
data('val')
andval()
the button fires only after the second click. In order to fix this, we had to harmonize the usage of the data slot and remove the duplicated event handler to make sure that the value is changed only once.