Skip to content

Commit

Permalink
Fix graph row lazy loading (#16145)
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Jun 19, 2024
1 parent a37efd2 commit 98fbfca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/View/Components/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function filterAttributes($value, $key): bool
return ! in_array($key, [
'legend',
'height',
'loading',
]);
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/graph.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img width="{{ $width }}" height="{{ $height }}" src="{{ $src }}" alt="{{ $type }}" {{ $attributes->merge(['class' => 'graph-image'])->filter($filterAttributes) }}>
<img width="{{ $width }}" height="{{ $height }}" src="{{ $src }}" alt="{{ $type }}" {{ $attributes->merge(['class' => 'graph-image'])->filter($filterAttributes) }} {{ $attributes->only('loading') }}>
2 changes: 1 addition & 1 deletion resources/views/components/linked-graph.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="{{ $link }}" {{ $attributes->filter($filterAttributes) }}><img width="{{ $width }}" height="{{ $height }}" src="{{ $src }}" alt="{{ $type }}" class="graph-image"></a>
<a href="{{ $link }}" {{ $attributes->filter($filterAttributes) }}><img width="{{ $width }}" height="{{ $height }}" src="{{ $src }}" alt="{{ $type }}" class="graph-image" {{ $attributes->only('loading') }}></a>

0 comments on commit 98fbfca

Please sign in to comment.