Skip to content

Commit

Permalink
Fix setting original-title when custom label is emptied
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg committed Dec 11, 2024
1 parent 29415c0 commit 26370fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/admin-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@
} else {
// If there's no custom title, then use the original
// @see GravityView_Admin_View_Item::getOutput()
$label.html( $label.attr( 'data-original-title' ) );
$label.html( $label.parent( '.gv-field-label' ).data( 'original-title' ) );
}

}
Expand Down

0 comments on commit 26370fd

Please sign in to comment.