laminas / laminas-developer-tools

Module for developer and debug tools for use with laminas-mvc applications.
BSD 3-Clause "New" or "Revised" License
23 stars 13 forks source link

TypeError: toggleTrigger is null toggleTrigger.innerHTML = "◄"; #13

Closed weierophinney closed 4 years ago

weierophinney commented 4 years ago

Firebug show this error on this function:

        self.show = function() {
            slide(0);

            toggleTrigger.innerHTML = "◄";
            toggleTrigger.setAttribute("title", "Hide Toolbar");
            hidden = false;

            cookie.set(cookieKeyHidden, 0);
        };

and there is no icon to close toolbar


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155

weierophinney commented 4 years ago

What's the error?


Originally posted by @Ocramius at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46862601

weierophinney commented 4 years ago

In javascript, firebug report error


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46862688

weierophinney commented 4 years ago

Yes, but what error?


Originally posted by @Ocramius at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46862750

weierophinney commented 4 years ago

TypeError: toggleTrigger is null

toggleTrigger.innerHTML = "◄";


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46862780

weierophinney commented 4 years ago

What does this look like in your page?


Originally posted by @Ocramius at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46862900

weierophinney commented 4 years ago

How to test it?


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46864752

weierophinney commented 4 years ago

Just run that command in the console - I suppose the HTML on your page may be broken


Originally posted by @Ocramius at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46864820

weierophinney commented 4 years ago

It shows a element with 'zdf-toolbar-toggle' id but it's hidden


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46866840

weierophinney commented 4 years ago

<a href="javascript:void(0);" class="zdf-toolbar-hide-button" id="zdf-toolbar-toggle"></a>


Originally posted by @sjanjic at https://github.com/zendframework/zend-developer-tools/issues/155#issuecomment-46867154

samsonasik commented 4 years ago

closing since the issue is not reproducible and seems no longer relevant. please re-create issue if problem persist.