Made components update the selection automatically on change instead of triggering the change individually