mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Revert: Fixed indicator state updates after configuration with same blocks
commit_hash:b079714e09f542aa203d802a3ac76442b2e2d683
This commit is contained in:
@@ -93,7 +93,7 @@ extension DivIndicator: DivBlockModeling {
|
||||
|
||||
return PageControlBlock(
|
||||
layoutDirection: context.layoutDirection,
|
||||
pageControlPath: context.path,
|
||||
pageControlPath: context.parentPath,
|
||||
pagerPath: pagerPath,
|
||||
widthTrait: resolveContentWidthTrait(context),
|
||||
heightTrait: resolveContentHeightTrait(context),
|
||||
|
||||
@@ -77,15 +77,13 @@ private final class PagerView: BlockView {
|
||||
self.model = model
|
||||
self.selectedActions = selectedActions
|
||||
|
||||
onMainThreadAsync { [isNewModel] in
|
||||
if isNewModel {
|
||||
if isNewModel {
|
||||
onMainThreadAsync {
|
||||
self.setState(
|
||||
path: model.path,
|
||||
state: state.synchronized(with: model),
|
||||
selectedActions: selectedActions
|
||||
)
|
||||
} else {
|
||||
observer?.elementStateChanged(state, forPath: model.path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user