File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
kolibri/plugins/epub_viewer/assets/src/views Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 262262 this .$emit (' setTheme' , this .themes .WHITE ); // apply the default theme
263263 }
264264 this .$nextTick (() => {
265- this .$refs .addCustomThemeButton .$refs .button .focus ();
265+ console .log (' refs' , this .$refs );
266+ console .log (' refs.addCustomThemeButton' , this .$refs .addCustomThemeButton );
267+ console .log (' refs.addCustomThemeButton.$refs' , this .$refs .addCustomThemeButton .$refs );
268+ console .log (
269+ ' refs.addCustomThemeButton.$refs.button' ,
270+ this .$refs .addCustomThemeButton .$refs .button
271+ );
272+
273+ if (this .$refs .addCustomThemeButton && this .$refs .addCustomThemeButton .$refs .button ) {
274+ this .$refs .addCustomThemeButton .$refs .button .focus ();
275+ }
266276 });
267277 },
268278 },
You can’t perform that action at this time.
0 commit comments