Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsdialog: prevent errors on treeview context menu
Fixes error when trying to open context menu on "Contents 3" node in the style sidebar in Writer global.js:566 Exception SyntaxError: Failed to execute 'querySelector' on 'Element': '.unoContents 3' is not a valid selector. emitting event jsdialog: { "children": [ { "id": "__MENU__", "type": "menu", "count": 5, "entries": [ { "row": "new", "columns": [ { "text": "New..."}]}, { "row": "edit", "columns": [ { "text": "Edit Style..."}]}, { "row": "hide", "columns": [ { "text": "Hide"}]}, { "row": "show", "columns": [ { "text": "Show"}]}, { "row": "delete", "columns": [ { "text": "Delete..."}]}]}], "jsontype": "dialog", "type": "dropdown", "cancellable": true, "popupParent": "treeview", "clickToClose": "Contents 3", "id": 0} SyntaxError: Failed to execute 'querySelector' on 'Element': '.unoContents 3' is not a valid selector. at NewClass.addHandlers (https://localhost:9980/browser/9a61792f5d/src/control/Control.JSDialog.js:327:51) at NewClass.onJSDialog (https://localhost:9980/browser/9a61792f5d/src/control/Control.JSDialog.js:648:18) Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I78dbc41eb1117f2c9adba4a21390fd908e8b8f9f
- Loading branch information