Fix #10703 (selection reset after added/removed attribute)