mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-25 00:16:52 +00:00
fix: param maybe null
This commit is contained in:
parent
3d8ade3ebe
commit
6b6124369c
@ -34,10 +34,9 @@ BlockIdWidget.prototype.render = function(parent,nextSibling) {
|
||||
};
|
||||
|
||||
BlockIdWidget.prototype.hookFocusElementEvent = function(event) {
|
||||
if(!event.param) return event;
|
||||
var id = event.param.replace('#','');
|
||||
if(id !== this.id) {
|
||||
return event;
|
||||
}
|
||||
if(id !== this.id) return event;
|
||||
var element = this.parentDomNode;
|
||||
// need to check if the block is before this node
|
||||
if(this.previousSibling) {
|
||||
|
Loading…
Reference in New Issue
Block a user