Skip to content

Commit

Permalink
Fix nova-froala-field compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparrosin committed Feb 8, 2021
1 parent af37ead commit 7b21152
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.7.2] - 2021-02-04

### Changed

- Fixed `nova-froala-field` incompatibility since `1.7.0`

## [1.7.1] - 2021-02-04

### Changed
Expand Down
2 changes: 1 addition & 1 deletion dist/js/translatable-field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default {
for (const rawKey of formDataKeys) {
const [key, value] = this.getKeyAndValue(rawKey, locale, tempFormData);
if (this.isFlexible || this.isSimpleRepeatable) {
if ((this.isFlexible && key.endsWith(originalAttribute + `[${locale.key}]`)) || this.isSimpleRepeatable) {
if (this.isKeyAnArray(rawKey)) {
if (!data[locale.key]) data[locale.key] = [];
data[locale.key].push(value);
Expand Down

0 comments on commit 7b21152

Please sign in to comment.