Skip to content

Instantly share code, notes, and snippets.

View yahilmadakiya's full-sized avatar

yahil madakiya yahilmadakiya

View GitHub Profile
@vishalkakadiya
vishalkakadiya / main.js
Last active June 18, 2021 06:05
FieldManager's Autocomplete, Datepicker and RichText_Area elements not working with Gutenberg block editor?
/**
* Below is the small trick to fix conflicts between FieldManager's Autocomplete, Datepicker and RichText_Area with Gutenberg block editor.
*/
$( window ).load( function() {
// NOTE: This is fix for fieldmanager datepicker and autocomplete.
// Ref: https://github.com/alleyinteractive/wordpress-fieldmanager/issues/713 .
if ( typeof fm !== "undefined" ) {
if ( typeof fm.datepicker !== "undefined" ) {