Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix with Picture filed bug #2258

Open
Kostyavas opened this issue Jun 3, 2022 · 0 comments · May be fixed by #2259
Open

Matrix with Picture filed bug #2258

Kostyavas opened this issue Jun 3, 2022 · 0 comments · May be fixed by #2259
Assignees
Labels

Comments

@Kostyavas
Copy link

Kostyavas commented Jun 3, 2022

Describe the bug
Matrix duplicates images for new fields

To Reproduce

  1. Create Matrix with Picture field.
 Matrix::make('test')
    ->columns([
       'Picture' => 'picture',
       'Text' => 'text',
   ])
   ->fields([
       'picture' => Picture::make('picture')->maxFileSize(2)->targetId(),
       'text' => Input::make()->type('text'),
   ])
  1. Add picture
  2. Save to database
  3. Refresh page
  4. Try to add new row in matrix

Expected behavior
Clear new field without image

Screenshots
Screenshot of a bug:
image

This happens because the matrix doesn't clear data-picture-url in template
image

@Kostyavas Kostyavas linked a pull request Jun 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants