fix: preserve select selection with spread attributes (#18561)