Skip to content

Commit

Permalink
Merge pull request #69 from nikolai-vysotskyi/fix-dependson
Browse files Browse the repository at this point in the history
Fix dependsOn
  • Loading branch information
dniccum authored Jul 15, 2024
2 parents 4c4b291 + 0a73603 commit a7c0e13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<DefaultField :field="field" :errors="errors" :show-help-text="showHelpText">
<DefaultField :field="currentField" :errors="errors" :show-help-text="showHelpText">
<template #field>
<input :id="field.name" type="tel"
<input :id="currentField.name" type="tel"
class="w-full form-control form-input form-input-bordered"
:class="errorClasses"
:placeholder="placeholder"
Expand All @@ -13,12 +13,12 @@
</template>

<script>
import { FormField, HandlesValidationErrors } from 'laravel-nova'
import { DependentFormField, HandlesValidationErrors } from 'laravel-nova'
const defaultFormat = '(###) ###-####';
export default {
mixins: [FormField, HandlesValidationErrors],
mixins: [DependentFormField, HandlesValidationErrors],
props: ['resourceName', 'resourceId', 'field'],
Expand Down

0 comments on commit a7c0e13

Please sign in to comment.