Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bartko-s
Copy link
Contributor

  • bug fix
  • BC break? no

Example code:

$form->addSelect('country', 'Country', ['sk' => 'Slovakia', 'cz' => 'Czech Republic'])
    ->setRequired()	
    ->checkDefaultValue(false)
    ->setPrompt('-- select value --')
    ->setDefaultValue('en'); // value does not exists

The expected behavior is that the prompt will be selected but the first item is selected.
In version <= 3.2.1 this worked correctly.

@dg
Copy link
Member

dg commented Mar 31, 2025

Thanks

@dg dg merged commit d4dc7e8 into nette:master Mar 31, 2025
6 of 12 checks passed
dg pushed a commit that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants