focus new playlist modal form

This commit is contained in:
geoffrey45 2022-03-26 12:32:34 +03:00
parent 8533fdb7ee
commit cdaa3df0e1

View File

@ -14,8 +14,13 @@
</template>
<script setup lang="ts">
import { onMounted } from "vue";
import { createNewPlaylist } from "../../composables/playlists";
onMounted(() => {
document.getElementById("modal-playlist-name-input").focus();
});
const emit = defineEmits<{
(e: "title", title: string): void;
(e: "hideModal"): void;