1. element api: `beforeinput` event