You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing i don't like with Lookup field is that if it has placeholder and you select "..." value then it shows that ... value and not make it blank and show placeholder again.
It's small glitch, but annoying :)
The text was updated successfully, but these errors were encountered:
@DarkSide666 - Best way to do so is by setting the dropdown clearable option to true and not using an empty value, like below:
$form->addField('country3', [
'Lookup',
'model' => new Country($db),
'placeholder' => 'Search for country by code, LV or UK',
'search' => ['name', 'iso', 'iso3'],
'empty' => '',
'settings' => ['clearable' => true]
]);
This way, the empty string is not returned as a selectable option but you can still clear the input using the X icon. Clearing input this way will reset placeholder text.
One thing i don't like with Lookup field is that if it has placeholder and you select "..." value then it shows that ... value and not make it blank and show placeholder again.
It's small glitch, but annoying :)
The text was updated successfully, but these errors were encountered: