Skip to content

Commit

Permalink
Work around MultiColumnWizard select styling and behavior issues.
Browse files Browse the repository at this point in the history
Select doesn't get a fixed width automatically because, unlike the ModuleWizard,
MultiColumnWizard doesn't add the tl_select_column CSS class.

After row duplication, select options can only be selected when chosen is used:
menatwork/MultiColumnWizard#188
  • Loading branch information
gmpf committed Mar 2, 2018
1 parent be73cef commit 123f5ed
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions dca/tl_layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,24 @@
'col' => [
'label' => &$GLOBALS['TL_LANG']['tl_layout']['fallbackArticlesCol'],
'inputType' => 'select',
'options_callback' => [Layout::class, 'getSections']
'options_callback' => [Layout::class, 'getSections'],
'eval' => [
// MultiColumnWizard doesn't set tl_select_column class
'style' => 'width: 140px;',
// see https://github.com/menatwork/MultiColumnWizard/issues/188
'chosen' => true
]
],
'fallback' => [
'label' => &$GLOBALS['TL_LANG']['tl_layout']['fallbackArticlesFallback'],
'inputType' => 'select',
'options_callback' => [Layout::class, 'getFallbackMethods']
'options_callback' => [Layout::class, 'getFallbackMethods'],
'eval' => [
// MultiColumnWizard doesn't set tl_select_column class
'style' => 'width: 140px;',
// see https://github.com/menatwork/MultiColumnWizard/issues/188
'chosen' => true
]
]
]
],
Expand Down

0 comments on commit 123f5ed

Please sign in to comment.