add capture=camera to the accept attribute in file input when selecting transaction pictures

This commit is contained in:
MaysWind
2025-09-21 12:00:19 +08:00
parent 02514fc457
commit f06c6523a2
+1 -1
View File
@@ -472,7 +472,7 @@
<f7-photo-browser ref="pictureBrowser" type="popup" navbar-of-text="/"
:theme="isDarkMode ? 'dark' : 'light'" :navbar-show-count="true" :exposition="false"
:photos="transactionPictures" :thumbs="transactionThumbs" />
<input ref="pictureInput" type="file" style="display: none" :accept="SUPPORTED_IMAGE_EXTENSIONS" @change="uploadPicture($event)" />
<input ref="pictureInput" type="file" style="display: none" :accept="`${SUPPORTED_IMAGE_EXTENSIONS};capture=camera`" @change="uploadPicture($event)" />
</f7-page>
</template>