:bug: fix spread with events by Mortaro · Pull Request #330 · nullstack/nullstack · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion loaders/add-source-to-node.js
10 changes: 6 additions & 4 deletions tests/src/RenderableComponent.njs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class RenderableComponent extends Nullstack {
render({ params }) {
const list = params.shortList ? [1, 2, 3] : [1, 2, 3, 4, 5, 6]
const html = '<a href="/"> Nullstack </a>'
const props = { disabled: true, 'aria-label': 'props' }
return (
<div class="RenderableComponent">
<Falsy />
Expand Down Expand Up @@ -56,16 +57,17 @@ class RenderableComponent extends Nullstack {
</head>
{!!params.condition && <div class="condition"> conditionally rendered div </div>}
<a params={{ shortList: true }} class="short-list">
{' '}
long list{' '}
long list
</a>
<a params={{ condition: true }} class="true-condition">
{' '}
long list{' '}
long list
</a>
<div data-condition={!!params.condition} />
<div data-short-list={!!params.shortList} />
<div data-name={this.name} />
<button {...props} onclick={() => {}}>
props
</button>
</div>
)
}
Expand Down
5 changes: 5 additions & 0 deletions tests/src/RenderableComponent.test.js