Skip to content

Commit

Permalink
release 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stowez committed Nov 14, 2024
1 parent 0dfdcfb commit e036f0a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 1.3.1 - 2024-11-14

- Fixed the #0f0 green
- Correctly fire the parent field observer

## 1.3.0 - 2024-11-14

- Fixed selected parent option not being passed correctly to the ajax endpoint
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "razorcreations/ajax-field",
"description": "A searchable AJAX powered field for Laravel Nova 3 and 4.",
"version": "1.3.0",
"version": "1.3.1",
"authors": [
{
"name": "Ross Cooper",
Expand Down
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,9 @@ export default {
mounted () {
this.parseInitialValue();
if (this.parentComponent) {
this.parentComponent.$watch('value', (value) => {
this.parentVal = value;
this.prepareField();
}, { immediate: true });
if (this.field.parent_field) {
this.observeParentField();
this.prepareField();
} else {
this.prepareField();
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.3.1

0 comments on commit e036f0a

Please sign in to comment.