Trigger change event only on value changes

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.