Skip to content

305 - Capitalize #2886

@filimonich

Description

@filimonich
<script setup>
import { ref, watch } from 'vue';

const value = ref('');

watch(value, (newValue) => {
  if (newValue) {
    value.value = newValue.charAt(0).toUpperCase() + newValue.slice(1);
  }
});
</script>

<template>
  <input type="text" v-model="value" />
</template>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions