Semantic-UI-Docs icon indicating copy to clipboard operation
Semantic-UI-Docs copied to clipboard

[Sidebar] View Source button error

Open mdhtr opened this issue 8 years ago • 0 comments

Clicking the View Source button on the Sidebar/Definition page throws Uncaught TypeError: Cannot read property 'split' of undefined.

Uncaught TypeError: Cannot read property 'split' of undefined
    at Object.getIndent (docs.js:643)
    at Object.formatCode (docs.js:1011)
    at r.fn.init.initializeCode (docs.js:1081)
    at e (jquery.min.js:2)
    at HTMLElement.createCode (docs.js:805)
    at HTMLElement.dispatch (jquery.min.js:3)
    at HTMLElement.q.handle (jquery.min.js:3)
getIndent @ docs.js:643
formatCode @ docs.js:1011
initializeCode @ docs.js:1081
e @ jquery.min.js:2
createCode @ docs.js:805
dispatch @ jquery.min.js:3
q.handle @ jquery.min.js:3
2017-04-27 16:42:58.196 

What would be the desired usage of the View Source button here? The code is already shown. Should the View Source button be removed or should it be fixed?

mdhtr avatar Apr 27 '17 14:04 mdhtr