[FIX] event onchange event type

Courtesy of Alejandro Santana

Closes: #1046, #1047