chore: keep selection state after sharing action (#29640)