Skip to content

Commit

Permalink
fix: removed data- from attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 1, 2022
1 parent 1b4a430 commit 62e95f9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions demo/fetch.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

<div template_id="abc1">
<div class="template card {{render2.collection}} card margin:10px"
data-value="{{render2.data._id}}"
value="{{render2.data._id}}"
template_id="abc1"
render-array="render2.data">
<div class="card-body padding:15px" collection="{{render2.collection}}">
<h3 class="{{render2.data.firstname}} blue" value="{{render2.data.lastname}} - {{render2.data.firstname}}">--</h3>
<h3 data-value="{{ render2.data.lastname }}" value="{{lastname}}"></h3>
<h3 value="{{ render2.data.lastname }}" value="{{lastname}}"></h3>
<input value="{{ render2.collection }}"/>
<h3 class="email" value="{{render2.data.email}}">--</h3>
<textarea value="{{render2.data.lastname}}"></textarea>
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

<div template_id="abc1">
<div class="template card {{render2.collection}} card margin:10px firstname"
data-value="{{render2.data._id}}"
value="{{render2.data._id}}"
template_id="abc1"
render-array="render2.data">
<div class="card-body padding:15px" collection="{{render2.collection}}">
<h3 class="{{render2.data.firstname}} blue" value="{{render2.data.lastname}} - {{render2.data.firstname}}">--</h3>
<h3 data-value="{{ render2.data.lastname }}" value="{{lastname}}"></h3>
<h3 value="{{ render2.data.lastname }}" value="{{lastname}}"></h3>
<input value="{{ render2.collection }}"/>
<h3 class="email" value="{{render2.data.email}}">--</h3>
<textarea value="{{render2.data.lastname}}"></textarea>
Expand Down
2 changes: 1 addition & 1 deletion demo/suggestion.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div template_id="abc1" fetch-collection="render_test">
<div class="template card {{render2.collection}} card margin:10px firstname"
data-value="{{render2.data._id}}"
value="{{render2.data._id}}"
template_id="abc1"
render-array="render2.data">
<div class="card-body padding:15px" collection="{{render2.collection}}">
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ <h4 class="margin-top:20px padding:5px_0px">HTML Template</h4>
<pre><code class="language-html">
&lt;div template_id=&quot;abc1&quot; fetch-collection=&quot;render_test&quot;&gt;
&lt;div class=&quot;template card {{render2.collection}} card margin:10px firstname&quot;
data-value=&quot;{{render2.data._id}}&quot;
value=&quot;{{render2.data._id}}&quot;
template_id=&quot;abc1&quot;
render-array=&quot;render2.data&quot;&gt;
&lt;div class=&quot;card-body padding:15px&quot; collection=&quot;{{render2.collection}}&quot;&gt;
&lt;h3 class=&quot;{{render2.data.firstname}} blue&quot; value=&quot;{{render2.data.lastname}} - {{render2.data.firstname}}&quot;&gt;--&lt;/h3&gt;
&lt;h3 data-value=&quot;{{ render2.data.lastname }}&quot; value=&quot;{{lastname}}&quot;&gt;&lt;/h3&gt;
&lt;h3 value=&quot;{{ render2.data.lastname }}&quot; value=&quot;{{lastname}}&quot;&gt;&lt;/h3&gt;
&lt;input value=&quot;{{ render2.collection }}&quot;/&gt;
&lt;h3 class=&quot;email&quot; value=&quot;{{render2.data.email}}&quot;&gt;--&lt;/h3&gt;
&lt;textarea value=&quot;{{render2.data.lastname}}&quot;&gt;&lt;/textarea&gt;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ action.init({

function renderKey(element) {
const form = element.closest("form") || document;
let data = CoCreate.api.getFormData('key', 'renderKey', form);
let data = CoCreate.api.getFormData('render-key', 'renderKey', form);

CoCreateRender.data({
selector: "[template_id='renderKey']",
Expand Down

0 comments on commit 62e95f9

Please sign in to comment.