Implementing the on-drag attribute which can point to a callback that will be called whenever the drag ends. It is useful if you want your application to only trigger a change (say an API call) when the user releases his mouse.