Skip to content

Commit

Permalink
feat: remove validated prop since it is handled with is-invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
hroth1994 committed Oct 2, 2024
1 parent f68d679 commit 3e57aca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions es-ds-components/components/es-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ const props = defineProps({
type: Boolean,
default: false,
},
validated: {
type: Boolean,
default: true,
},
});
</script>

<template>
<form
:class="{ 'form-inline': props.inline, 'was-validated': props.validated }"
:class="{ 'form-inline': props.inline }"
v-bind="$attrs">
<slot />
</form>
Expand Down
1 change: 0 additions & 1 deletion es-ds-docs/pages/organisms/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const inline = ref(false);
const propTableRows = [
['inline', 'Boolean', 'false', 'Display labels and form controls on a single horizontal row'],
['novalidate', 'Boolean', 'null', 'Disables browser native HTML5 validation on controls in the form'],
['validated', 'Boolean', 'null', "Adds the Bootstrap class 'was-validated' on the form"],
];
const state = reactive({
Expand Down

0 comments on commit 3e57aca

Please sign in to comment.