I'm working with <mat-select> and I need list of options where the last option would be a text input with placeholder Add your custom option. User can select one of the options or click the last option (which is input) and text own option , once he texted he clicked outside of select and value has been set what User has texted.
the problem is when the user add push space to add whitespace, dropdown closes.
<select>
<option value="option 1"> option 1 </option>
<option value="option 2"> option 2 </option>
<option> <input type="text" placeholder="own option" /></option>
</select>