Skip to content

Commit

Permalink
Issue/search mode toggle event (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
doekenorg authored Jul 16, 2024
2 parents ce910c6 + 963cdea commit 71a5f7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/js/admin-shortcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* @since 2.21
*/
( function ( $ ) {
$( document ).on( 'ready', function () {
var shortcode_clipboard = new ClipboardJS( '.gv-shortcode input.code', {
$( function () {
const shortcode_clipboard = new ClipboardJS( '.gv-shortcode input.code', {
text: function ( trigger ) {
return $( trigger ).val();
}
} );

shortcode_clipboard.on('success', function (e) {
var $el = $( e.trigger ).closest( '.gv-shortcode' ).find( '.copied' );
const $el = $( e.trigger ).closest( '.gv-shortcode' ).find( '.copied' );
$el.show();
setTimeout( function () {
$el.fadeOut();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@

var options = gvSearchWidget.getSelectInput( type );

select.html( options );
select.html( options ).trigger( 'change' );

// If there's only one option, disable ability to change it.
select.prop( 'disabled', function () {
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h
#### 🐛 Fixed
* Timeout issue when rendering a page/post with GravityView Gutenberg blocks when Yoast SEO is active.
* View editor fields added to the Single or Edit Entry layouts inheriting options from the View type set in the Multiple Entries layout.
* Search Widget issue where the Search Mode was fixed and disabled after selecting a Date Field.

= 2.25 on June 5, 2024 =

Expand Down

0 comments on commit 71a5f7b

Please sign in to comment.