ref #8263 Only refresh affected elements after operation