Trigger change only on value change

Fixes a issue that the `change` event was triggered on `init` and on
`resize`. Implements a check if `value` has changed before it fires the
`change` event.