From de72b13064df5683dcde45b2b1704787dfb08108 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Mon, 23 Apr 2018 16:11:50 +0200 Subject: [FIX] web: fix crash keyboard related crash in graph view Before this fix, when going on the graph view from the dashboard view ( using the fullscreen button on dashboard), the focus is on the search input, hitting the tab key creates a crash. This fix gives a default implementation of giveFocus to the abstractrenderer so there is no crash. --- addons/web/static/src/js/views/basic/basic_renderer.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'addons/web/static/src/js/views/basic') diff --git a/addons/web/static/src/js/views/basic/basic_renderer.js b/addons/web/static/src/js/views/basic/basic_renderer.js index 80cdd05bff5..1dae9f705ff 100644 --- a/addons/web/static/src/js/views/basic/basic_renderer.js +++ b/addons/web/static/src/js/views/basic/basic_renderer.js @@ -135,13 +135,6 @@ var BasicRenderer = AbstractRenderer.extend({ dom.setSelectionRange(field.getFocusableElement().get(0), {start: offset, end: offset}); } }, - - /** - * Order to focus to be given to the content of the current view - */ - giveFocus:function() { - }, - //-------------------------------------------------------------------------- // Private //-------------------------------------------------------------------------- -- cgit v1.2.3