mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Merge "Avoid "Cannot read property 'top' of undefined" in toolbar"
This commit is contained in:
commit
929c6010b6
|
@ -797,7 +797,8 @@
|
|||
handleKeyDown: function ( $element, event, $parent ) {
|
||||
var $nextItem,
|
||||
$currentItem = $element.find( '.wikiEditor-character-highlighted' ),
|
||||
optionTop = $parent.find( '.wikiEditor-character-highlighted' ).offset().top,
|
||||
optionOffset = $parent.find( '.wikiEditor-character-highlighted' ).offset(),
|
||||
optionTop = optionOffset ? optionOffset.top : 0,
|
||||
selectTop = $parent.offset().top;
|
||||
switch ( event.keyCode ) {
|
||||
// Up arrow
|
||||
|
|
Loading…
Reference in a new issue