Skip to content

Patterns / Modal Dialog documentation page has errors #676

Description

@tatut

The modal dialog pattern page has an error

hyperscript errors were found on the following element:
<dialog _="
    on input from &lt;input,textarea/&gt; in me set :dirty to true
&lt;p&gt;on closeRequested
if :dirty
if confirm('Discard unsaved changes?')
set :dirty to false then close me
end
else
close me
end&lt;/p&gt;
&lt;p&gt;on click[target is me] send closeRequested to me
on cancel halt the event then send closeRequested to me
&quot;&gt;
&lt;div class=" modal-header"="" open="">
<h3>Edit Contact</h3>
<button _="on click send closeRequested to closest &lt;dialog/&gt;" data-hyperscript-powered="true">×</button>
</dialog> 
"

"
"Unterminated string at [Line: 13, Column: 0]"
"#consumeString@https://hyperscript.org/js/_hyperscript.js:551:24
#tokenize@https://hyperscript.org/js/_hyperscript.js:602:48
#initElement@https://hyperscript.org/js/_hyperscript.js:2799:46
@https://hyperscript.org/js/_hyperscript.js:2888:28
forEach@https://hyperscript.org/js/_hyperscript.js:2558:15
processNode@https://hyperscript.org/js/_hyperscript.js:2887:21
@https://hyperscript.org/js/_hyperscript.js:10392:29"
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions