Henning Snater has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183502
Change subject: tagadata: Fixed tag detection on blur
......................................................................
tagadata: Fixed tag detection on blur
Having initialized multiple tagadata widget, the helper tag was removed when
blurring it
in the tagadata instance that is not the last in the DOM structure.
Change-Id: Iba7d1879f432f888d5457654e931576113832947
---
M repo/resources/jquery.ui/jquery.ui.tagadata.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/02/183502/1
diff --git a/repo/resources/jquery.ui/jquery.ui.tagadata.js
b/repo/resources/jquery.ui/jquery.ui.tagadata.js
index a3359ce..7eccdeb 100644
--- a/repo/resources/jquery.ui/jquery.ui.tagadata.js
+++ b/repo/resources/jquery.ui/jquery.ui.tagadata.js
@@ -384,7 +384,7 @@
// remove tag if it is empty already:
if( self._formatLabel( $input.val() ) === ''
&& self.getTags().length > 1
- && !$tag.is( '.tagadata-choice:last' )
+ && !$tag.is( self.element.children(
'.tagadata-choice' ).last() )
) {
self.removeTag( $tag );
}
--
To view, visit https://gerrit.wikimedia.org/r/183502
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba7d1879f432f888d5457654e931576113832947
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits