Properly update "StandardReaderProgressBar" slots on "progress bar position" change
"createProgressBarSlot" was never called in case the function reference changed but none of the passed arguments
This commit is contained in:
@@ -71,8 +71,6 @@ const BaseStandardReaderProgressBar = ({
|
||||
pageUrl={page.primary.url}
|
||||
primaryPageLoadState={primaryPageLoadState}
|
||||
secondaryPageLoadState={secondaryPageLoadState}
|
||||
isHorizontal={isHorizontal}
|
||||
isVertical={isVertical}
|
||||
progressBarPosition={progressBarPosition}
|
||||
isCurrentPage={isCurrentPage}
|
||||
isFirstPage={pagesIndex === 0}
|
||||
@@ -81,7 +79,7 @@ const BaseStandardReaderProgressBar = ({
|
||||
isDragging={isDragging}
|
||||
/>
|
||||
),
|
||||
[isHorizontal, isVertical, isDragging, progressBarPosition],
|
||||
[progressBarPosition, isDragging],
|
||||
)}
|
||||
slotProps={{
|
||||
container: {
|
||||
|
||||
Reference in New Issue
Block a user