fix(journals): add type='button' to prevent form submission and migrate to V3 Action API for file downloads
This commit is contained in:
@@ -99,8 +99,7 @@
|
||||
"
|
||||
>
|
||||
<!-- If middle click then open the all journals page in a new tab. Otherwise show/hide the menu. -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onmousedown={(event) => {
|
||||
if (event.button === 1) {
|
||||
// Middle click - open in new tab
|
||||
@@ -230,8 +229,7 @@ Middle-click to open in new tab`}
|
||||
</a>
|
||||
{:else}
|
||||
<!-- Edit Journal button. Creates a modal to edit the journal. -->
|
||||
<!-- <button
|
||||
type="button"
|
||||
<!-- <button type="button"
|
||||
onclick={() => {
|
||||
tmp_journal_obj = {
|
||||
name: $lq__journal_obj?.name,
|
||||
@@ -265,8 +263,7 @@ Middle-click to open in new tab`}
|
||||
<!-- <span class="text-sm text-gray-500 hidden md:inline">
|
||||
New entry:
|
||||
</span> -->
|
||||
<button
|
||||
type="button"
|
||||
<button type="button"
|
||||
onclick={() => {
|
||||
// $journals_sess.show__modal_new__journal_entry_obj = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user