js: don't create invalid menus by default

When a new "Menu" type de champ is added, it comes pre-filled with a
menu title – and nothing else. Which is confusing, and invalid.

Instead pre-fill the type de champ with actual values (no titles).
This commit is contained in:
Pierre de La Morinerie 2021-11-30 09:17:19 +01:00
parent 9ae4361f59
commit 115ca5e24a

View file

@ -110,7 +110,7 @@ function updateTypeDeChamp(
break;
case 'drop_down_list':
case 'multiple_drop_down_list':
typeDeChamp.drop_down_list_value = '--Premier élément du menu--\n';
typeDeChamp.drop_down_list_value = 'Premier choix\nDeuxième choix';
}
}