google/playground-elements

Using "selected" doens't load initially the contents of the tab if is not specified first.

tomasts248 opened this issue · 0 comments

This happens with more than one tab and when the selected tab is not the first one specified as a "script" such as in this case example:

<script type="sample/html" filename="index.html">
  <!doctype html>
  <html>
    <head>
      <link rel="stylesheet" href="mi-hoja-de-estilos.css">
    </head>
    <body>
       <h1>Ok..</h1>
    </body>
  </html>
  </script>
  <script selected type="sample/css" filename="mi-hoja-de-estilos.css">

In this case on initial load the HTML content is displayed first, when instead it should display the CSS tab. Quick workaround is swaping those script tags.