Skip to content

Commit

Permalink
Merge pull request #33 from joanrodas/repeatable
Browse files Browse the repository at this point in the history
Fix reset
  • Loading branch information
joanrodas committed Mar 20, 2023
2 parents 94589db + 3ae7de5 commit e40823d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CPF/Field/FileField.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function display($parent='')
<span><?= get_the_title($value) ?></span>
<?php endif; ?>
</label>
<button type="reset" @click="files = null" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px;">Reset</button>
<button type="button" @click="files = null" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px;">Reset</button>
</p>
<?php echo ob_get_clean();
}
Expand All @@ -40,7 +40,7 @@ public function display_complex($parent='')
<span><?= get_the_title($value) ?></span>
<?php endif; ?>
</label>
<button type="reset" @click="files = null" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px;">Reset</button>
<button type="button" @click="files = null" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px;">Reset</button>
</p>
<?php echo ob_get_clean();
}
Expand Down
4 changes: 2 additions & 2 deletions CPF/Field/ImageField.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function display($parent='')
</span>
</label>

<button type="reset" @click="image_file = false; image_src = ''" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer;">Reset</button>
<button type="button" @click="image_file = false; image_src = ''" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer;">Reset</button>
</p>
<?php echo ob_get_clean();
}
Expand All @@ -48,7 +48,7 @@ public function display_complex($parent='')
</span>
</label>

<button type="reset" @click="image_file = false; image_src = ''" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer;">Reset</button>
<button type="button" @click="image_file = false; image_src = ''" style="margin: 0.5rem 0 0; background-color: #ccc; border: 2px solid #ccc; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer;">Reset</button>
</p>
<?php echo ob_get_clean();
}
Expand Down

0 comments on commit e40823d

Please sign in to comment.