Skip to content

Commit 7154399

Browse files
committed
fix add-item css selector
1 parent ec86098 commit 7154399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formwidgets/blocks/assets/js/blocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184

185185
if (this.options.maxItems && this.options.maxItems > 0) {
186186
var repeatedItems = this.$el.find('> .field-repeater-items > .field-repeater-item').length,
187-
$addItemBtn = this.$el.find('> .field-repeater-add-item')
187+
$addItemBtn = this.$el.find('> .field-repeater-items > .field-repeater-add-item')
188188

189189
$addItemBtn.toggle(repeatedItems < this.options.maxItems)
190190
}

0 commit comments

Comments
 (0)