Prevent default event when adding a trigger

Don't submit the form when adding a new trigger and cleanup the value
field once added.