I am trying to use a v-if
statement to show some HTML only if the archiveNote
variable is not empty/null.
<div v-if="archiveNote === null || archiveNote ===''" class="form-check ml-3" id="include-note-div">
Here is how it's instantiated
export default {
name: "ConfirmReleaseFilesModal",
props: {
archiveName: String,
archiveNote: String
},
which is then passed in from this other Vue file
<confirm-release-files-modal
v-if="showConfirmReleaseFilesModal"
@cancel="closeModal"
@confirmAndEmail="releaseAction"
@confirmNoEmail="releaseAction"
:archive-name="archiveName"
:archive-note ="archiveNote"
>
</confirm-release-files-modal>
The block of HTML still shows when archiveNote
is console.log
out as empty