Custom select: Fixing typo

This typo was introduced in 2451b0b99ad8d02e1367827741323d40f870ad91.

Fixes gh-6975