Fix graph row lazy loading (#16145)

This commit is contained in:
Tony Murray
2024-06-19 09:20:23 -05:00
committed by GitHub
parent a37efd2876
commit 98fbfca027
3 changed files with 3 additions and 2 deletions

View File

@@ -130,6 +130,7 @@ class Graph extends Component
return ! in_array($key, [
'legend',
'height',
'loading',
]);
}

View File

@@ -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') }}>

View File

@@ -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>