mw.widgets.TagMultiselectWidget.prototype.updateHiddenInput = function () {
        if ( '$hiddenInput' in this ) {
            this.$hiddenInput.val( this.getValue().join( '\n' ) );
            // Trigger a 'change' event as if a user edited the text
            // (it is not triggered when changing the value from JS code).