Skip to content

Commit

Permalink
[Zones] Résolution du bug d'affichage de la carte (superposition d'él…
Browse files Browse the repository at this point in the history
…éments) (#993)

- Resolve #894
  • Loading branch information
claire2212 authored Nov 20, 2023
2 parents a4225e1 + cf5f5b3 commit 52b28a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export function AMPLayer({ layerId, searchedText }: { layerId: number; searchedT

useEffect(() => {
if (selectedAmpLayerId === layerId && ref?.current) {
ref.current.scrollIntoView({
behavior: 'smooth'
})
ref.current.scrollIntoView(false)
}
}, [selectedAmpLayerId, ref, layerId])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ export function RegulatoryLayer({ layerId, searchedText }: { layerId: number; se

useEffect(() => {
if (layerId === regulatoryMetadataLayerId && ref?.current) {
ref.current.scrollIntoView({
behavior: 'smooth'
})
ref.current.scrollIntoView(false)
}
}, [layerId, regulatoryMetadataLayerId, ref])

Expand Down

0 comments on commit 52b28a4

Please sign in to comment.