Skip to content

Commit

Permalink
FIX: update field button
Browse files Browse the repository at this point in the history
  • Loading branch information
ihslimn committed Sep 17, 2024
1 parent 6377e24 commit d6c3162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion additional-block-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function add_attributes( $block ) {
$this->script_enqueued = true;
}

if ( ! empty( $attrs['jfb_update_fields_field_to_listen'] ) ) {
if ( ! empty( $attrs['jfb_update_fields_field_to_listen'] ) && empty( $attrs['jfb_update_fields_update_on_button'] ) ) {
$block->add_attribute( 'data-update-listen-to', $attrs['jfb_update_fields_field_to_listen'] );
}

Expand Down

0 comments on commit d6c3162

Please sign in to comment.