Skip to content

Commit

Permalink
allow balloon-selector to be used for repeater "titleFrom" config
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Feb 14, 2024
1 parent bb79834 commit c4d9c89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/backend/formwidgets/repeater/assets/js/repeater.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,13 @@
$target = $item
}

var $textInput = $('input[type=text]:first, select:first', $target).first()
var $textInput = $('input[type=text]:first, select:first, ul:first', $target).first()
if ($textInput.length) {
switch($textInput.prop("tagName")) {
case 'SELECT':
return $textInput.find('option:selected').text()
case 'UL':
return $textInput.find('li.active').text()
default:
return $textInput.val()
}
Expand Down

0 comments on commit c4d9c89

Please sign in to comment.