This post was originally published on this site
Looking to add some umami magic to your kitchen? This guide on how to cook maitake mushrooms covers all you need to know to make these flavorful fungi a star in your meals. Whether you’re roasting, sautéing, or just curious about what makes these mushrooms special, we’ve got you covered with tips that keep it simple but flavorful.
Have you ever roasted maitake mushrooms? If not, buckle up—these might just be the little kitchen surprise you’ve been waiting for. These frilly, flavorful gems bring a deep, earthy, umami-rich vibe that turns downright magical in the oven. And here’s the best part: they’re easy. Just grab a baking sheet, drizzle with a little oil, pop them in a hot oven, and watch them do their thing. Learning how to cook maitake mushrooms is all about maximum flavor with minimal effort.
Maybe you snagged some maitake mushrooms at the farmers’ market, or they finally caught your eye at the store. Either way, these mushrooms are about to bring something really special to your table. So, let’s turn up the heat and roast these beauties to golden perfection, and see how easily they make any meal feel like a little celebration.
What Are Maitake Mushrooms?
Maitake mushrooms might look a little wild with their ruffled edges, but they’re easygoing and packed with earthy, savory flavor. Also known as hen of the woods (yes, because they kind of look like a feathered bird!), maitakes are a great way to bring depth to simple dishes without much effort. Here are a few things to know about how to cook maitake mushrooms and make the most of their unique texture and taste:
- Where to Find Them: You might see fresh maitakes at farmers’ markets, specialty grocery stores, and even some larger supermarkets. Just look for clusters with a gray-brown color and a firm texture. Can’t find fresh maitake mushrooms? Dried maitakes work, too—just rehydrate them before cooking.
- Flavor Profile: Maitake mushrooms have a deep, earthy taste that’s richer and more complex than basic button mushrooms. Roast them up, and they get a crispy edge that complements their tender, almost meaty interior. Mild enough to pair with almost anything but bold enough to stand out, they bring an umami punch to simple dishes.
- Cooking Tips: Maitakes are simple to work with and bring big flavor when cooked right. Try roasting them in a hot oven with a drizzle of oil until their edges turn crispy and golden. Pan-frying is another great option—just cook them in a little oil over medium heat until they’re browned on one side, then flip for an even cook. For an extra savory twist, add a splash of soy sauce or a pinch of salt toward the end of cooking to bring out even more of their natural umami flavor.
Why Try Maitakes?
Maitake Tips And Tricks
Curious about cooking with maitakes? These mushrooms may look like they’re straight out of a forest fairytale, but they’re actually super easy to work with once you know a few basics. Here’s the lowdown on picking, prepping, and storing maitakes so you can bring out their best in every dish.
- Find the Fresh Ones: Look for maitakes that are firm, dry, and a rich gray-brown. Avoid any that feel slimy or look a little too soft—fresh maitakes should have a springy feel and that forest-y smell.
- Skip the Rinse: Maitakes soak up water fast, so instead of rinsing, give them a quick wipe with a damp cloth or brush. This way, they stay dry and get that perfect crisp when you cook them.
- Break Them Apart With Your Hands: Forget the knife—just use your hands to break maitakes into small clusters for easy roasting or frying if you’d like. They’ll come apart naturally and keep their unique shape.
- Trim the Stems: The base can be a bit tough, so go ahead and trim any thick or woody parts before cooking. This keeps every bite tender and ready to soak up flavor.
- Storage Smarts: Keep maitakes in a paper bag in the fridge. The cool air keeps them fresh and firm (no sad, mushy mushrooms here!) for up to five days, and the bag lets them breathe so they stay nice and dry.
Cooking Tips
Ready to get cooking with maitake mushrooms? These frilly beauties are not just about good looks—they pack a serious punch in the flavor department and are super versatile in the kitchen. Learning how to cook maitake mushrooms will open up a world of flavor. Whether you are giving them a quick roast or a sizzle in the pan, here’s how to get them just right:
- Lightly Oil and Roast: Lightly oil these lovely clusters, pop them in the oven at 425°F, and watch the magic happen. They’ll crisp up on the edges and stay wonderfully moist inside. Just the right touch for a fancy, fuss-free side!
- Sauté for Golden Perfection: Heat a dash of oil in a skillet over medium heat. Add the maitakes in larger clusters or whole for even cooking and a visually appealing result. Sauté until they are golden brown, which enhances their natural flavors.
- Fast and Fabulous: Maitakes are all about quick and fabulous cooking. A few minutes on high heat is all it takes to release their delicious, earthy flavor while keeping them tender and tasty.
- Whole or Hand-Torn: Whether you keep them whole for that rustic look or gently tear them into bite-sized pieces, maitakes are flexible enough to fit into any dish you dream up. Toss them over pasta, or just enjoy in a simple broth—either way you choose, they’re guaranteed to steal the show.
How To Use Maitake Mushrooms
Ready to turn maitake mushrooms into your new kitchen besties? These earthy wonders are about to become your go-to for adding a little oomph to everything from quick weeknight dinners to lazy weekend brunches. Whether you’re whipping up your first maitake masterpiece or you’re a seasoned fan looking for fresh ideas, here are some tasty ways to make these fabulous fungi shine in your next meal.
Elevate Your Breakfast
- Tofu Scramble with Maitakes: Kick off your morning with a hearty tofu scramble with earthy maitake mushrooms instead of shiitakes. It’s a simple twist that infuses your scramble with unique texture!
- Maitake Mushroom Bacon: Transform maitake mushrooms into crispy, savory vegan bacon that’s just too good to resist. Marinate these earthy beauties in a smoky blend, then roast them to crispy perfection. Perfect for topping off your brunch, adding to scrambles or adding to vegan egg dishes.
Main Course Marvels With Maitake
- Vegan Ramen Bowl: Slide sautéed maitake mushrooms into a steaming bowl of vegan ramen. Their unique texture and rich flavor make them a perfect substitute for traditional proteins, soaking up the savory broth beautifully.
- Crispy Mushroom Tacos: Swap out oyster mushrooms with crispy, pan-fried maitake mushrooms on your next taco night. Top with avocado, fresh cilantro, and a squeeze of lime for a mouthwatering twist on a classic.
- Maitake Vegan Pizza: Scatter your maitakes on top of a vegan pizza. Complement them with some vegan cheese, fresh arugula, and a drizzle of truffle oil for a gourmet touch that’s simple yet sophisticated.
- Maitake Stir-Fry: Toss maitakes into a colorful stir-fry. Combine with tofu and veggies like broccoli, baby corn, and snap peas, plus a splash of soy sauce or tamari for a quick, nutritious dish that’s bursting with flavor.
- Creamy Maitake Risotto: Let maitakes be the star in a creamy, dreamy vegan risotto. Their robust flavor complements the creamy texture of the risotto, making every bite a cozy comfort.
- Creamy Maitake Pasta: Incorporate sautéed maitakes into a creamy vegan Alfredo sauce. Toss with your favorite pasta, a handful of spinach, and a sprinkle of nutritional yeast for a decadent weeknight dinner.
- Pressed Maitake Mushrooms: Press maitakes for a succulent center and crispy edge, tucked into steamed buns for a mushroom feast!
Fun Mushroom Appetizers With A Twist
- Grilled Maitake Skewers: Marinate maitake mushrooms in an Asian marinade, then thread them on skewers and grill to perfection. Perfect for those barbecue days or when you’re craving a smoky flavor.
- Maitake Sushi Rolls: Give your sushi night a twist by including sautéed maitake mushrooms as the star filling. Their robust flavor pairs beautifully with sushi rice and avocado, all wrapped up in nori for a delicious vegan sushi experience.
- Maitake on Garlic Confit Toast: Transform your garlic confit into a gourmet treat by topping toasted slices with sautéed maitake mushrooms. The deep, savory flavor of the maitakes combined with the mellow sweetness of garlic confit creates a match made in culinary heaven. Perfect as an elegant starter or a luxurious snack.
And There You Have It—Maitake Magic!
Who knew a little mushroom could bring so much excitement to the kitchen? From sizzling stir-fries to that cozy bowl of ramen, learning how to cook maitake mushrooms brings a burst of earthy goodness to any dish. I hope this little guide inspires you to experiment with maitake mushrooms and maybe even find a new favorite recipe along the way!
For More Mushroom Dishes, Check Out These Recipes!
- Vegan Mushroom Stroganoff
- Oyster Mushroom Tacos with Chipotle-Lime Sauce
- Vegan Pork Buns with Oyster Mushroom Bacon
- Lobster Mushroom Sushi Rolls
FAQs
Cleaning maitake mushrooms is a breeze—just give them a quick brush to remove any dirt since they absorb water quickly. When preparing, simply tear the mushrooms into desired sizes by hand, which helps them cook evenly and maintain their natural texture. It’s the perfect prep for a deliciously earthy addition to any dish!
Maitake mushrooms boast a deep, earthy flavor with hints of peppery notes, making them stand out in any meal. Their rich and woodsy taste is paired with a meaty texture, ideal for enhancing both the flavor and heartiness of dishes like stir-fries, risottos, and vegan soups.
To clean maitake mushrooms effectively, avoid washing them under water as they can become soggy. Instead, use a soft brush or a damp cloth to gently wipe away any dirt. This method ensures they stay dry and flavorful, ready for your favorite recipes.
I hope you loved this article on how to cook maitake mushrooms! If you try the recipe below, I’d love a star rating and your feedback … I love reading your comments!
Roasted Maitake Mushrooms (Plus A Guide On How To Select, Prep and Cook Them!)
Total Time: 30 minutes
Yield: 2 servings
Diet: Vegan
Description
Wondering how to cook maitake mushrooms to bring out their incredible depth and savory goodness? This easy, roasted recipe with a sesame-miso broth showcases their crispy, tender texture in every bite. Perfect for when you need a little extra comfort, flavor, and flair in one cozy bowl!
Ingredients
for the mushrooms
- 16 ounces maitake mushrooms
- 2 tablespoons olive oil
for the broth
- 1 teaspoon vegan butter
- 1 tablespoon toasted sesame oil
- 1 shallot, minced
- 1 stalk celery, minced
- 2 tablespoons sherry
- 3/4 cup vegetable broth
- 1 teaspoon dark miso
to serve
- minced scallions
- black and white sesame seeds
Instructions
- Preheat your oven to 425°F.
for the mushrooms
- Pour 1 tablespoon of olive oil into a medium-sized cast iron pan, tilting it to coat the bottom evenly.
- Place the maitake mushrooms in the pan, keeping them as intact as possible.
- Drizzle the remaining tablespoon of oil over the top.
- Roast for about 25 minutes, turning the mushrooms over once at the halfway point to ensure even cooking.
for the broth
- In a small saucepan over medium-low heat, melt the vegan butter with the toasted sesame oil.
- Add the minced shallot and celery, stirring to coat, and cook for about 12 minutes, stirring occasionally. Lower the heat if any browning occurs.
- Increase the heat to medium-high, and after 2 minutes, pour in the sherry to deglaze. Let it simmer for 3-4 minutes, then add the vegetable broth.
- Continue simmering briefly, then remove from heat. Mix a small amount of broth with the miso in a separate bowl until smooth, then stir this back into the saucepan.
to serve
- Once the maitakes are roasted and slightly crisp on the edges, divide them between two bowls. Ladle the broth over the top, then garnish with minced scallions and sesame seeds. Serve immediately.
Notes
Broth Variations:
- For a richer broth, try adding a splash of tamari or soy sauce along with the vegetable broth. It adds depth and umami to the flavor.
- Adding a small piece of kombu (edible kelp) to the broth while simmering will give it an extra layer of savory flavor. Just remember to remove the kombu before serving.
Adjusting Cooking Time:
- If your mushrooms are larger, they may need an extra 5 minutes in the oven to get perfectly crisp edges.
- Pan-frying is an option for smaller maitake pieces. Sauté them over medium-high heat in oil for 5–7 minutes per side.
Garnish Options:
- Beyond scallions and sesame seeds, try adding fresh herbs like chives or cilantro for a different flavor profile.
- A sprinkle of chili oil or sesame chili flakes adds a spicy kick if you enjoy a bit of heat.
Make-Ahead Tip:
- The broth can be made up to two days ahead. Just reheat it gently before serving and add the miso at the last minute to keep its fresh flavor.
- Prep Time: 10 minutes
- Cook Time: 30 minutes
- Category: Side, Appetizer
- Method: Simmered, Roasted
- Cuisine: Asian
window.trCommon={“minRating”:6,”ajaxurl”:”https://olivesfordinner.com/wp-admin/admin-ajax.php”,”ratingNonce”:””,”postId”:147};
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.smoothScroll = {
init() {
document.addEventListener( ‘click’, ( e ) => {
let anchor = e.target;
if ( anchor.tagName !== ‘A’ ) {
anchor = anchor.closest( ‘a.tasty-recipes-scrollto’ );
}
if ( ! anchor || ! anchor.classList.contains( ‘tasty-recipes-scrollto’ ) ) {
return;
}
const elementHref = anchor.getAttribute( ‘href’ );
if ( ! elementHref ) {
return;
}
e.preventDefault();
this.goToSelector( elementHref );
});
},
goToSelector( selector ) {
const element = document.querySelector( selector );
if ( ! element ) {
return;
}
element.scrollIntoView( { behavior: ‘smooth’ } );
}
};
document.addEventListener(
‘DOMContentLoaded’,
() => window.TastyRecipes.smoothScroll.init()
);
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.cookMode = {
wakeLockApi: false,
wakeLock: false,
cookModeSelector: ‘.tasty-recipes-cook-mode’,
init() {
if (“wakeLock” in navigator && “request” in navigator.wakeLock) {
this.wakeLockApi = navigator.wakeLock;
}
const cookModes = document.querySelectorAll(this.cookModeSelector);
if (cookModes.length > 0) {
for (const cookMode of cookModes) {
if (this.wakeLockApi) {
cookMode.querySelector(‘input[type=”checkbox”]’).addEventListener(“change”, event => {
this.checkboxChange(event.target);
}, false);
} else {
cookMode.style.display = “none”;
}
}
}
},
checkboxChange(checkbox) {
if (checkbox.checked) {
this.lock();
} else {
this.unlock();
}
},
setCheckboxesState(state) {
const checkboxes = document.querySelectorAll(this.cookModeSelector + ‘ input[type=”checkbox”]’);
for (const checkbox of checkboxes) {
checkbox.checked = state;
}
},
async lock() {
try {
this.wakeLock = await this.wakeLockApi.request(“screen”);
this.wakeLock.addEventListener(“release”, () => {
this.wakeLock = false;
this.setCheckboxesState(false);
});
this.setCheckboxesState(true);
} catch (error) {
this.setCheckboxesState(false);
}
},
unlock() {
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = false;
}
this.setCheckboxesState(false);
}
};
(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
document.addEventListener(“DOMContentLoaded”, callback);
}
})(() => {
window.TastyRecipes.cookMode.init();
});
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.staticTooltip = {
element: null,
tooltipElement: null,
deleting: false,
init( element ) {
if ( this.deleting ) {
return;
}
this.element = element;
this.buildElements();
},
destroy() {
if ( ! this.tooltipElement || this.deleting ) {
return;
}
this.deleting = true;
this.tooltipElement.classList.remove( ‘opened’ );
setTimeout( () => {
this.tooltipElement.remove();
this.deleting = false;
}, 500 );
},
buildElements() {
const tooltipElement = document.createElement( ‘div’ );
tooltipElement.classList.add( ‘tasty-recipes-static-tooltip’);
tooltipElement.setAttribute( ‘id’, ‘tasty-recipes-tooltip’ );
const currentTooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
if ( currentTooltipElement ) {
document.body.replaceChild( tooltipElement, currentTooltipElement );
} else {
document.body.appendChild( tooltipElement );
}
this.tooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
},
show() {
if ( ! this.tooltipElement ) {
return;
}
const tooltipTop = this.element.getBoundingClientRect().top
+ window.scrollY
– 10 // 10px offset.
– this.tooltipElement.getBoundingClientRect().height;
const tooltipLeft = this.element.getBoundingClientRect().left
– ( this.tooltipElement.getBoundingClientRect().width / 2 )
+ ( this.element.getBoundingClientRect().width / 2 ) – 1;
const posLeft = Math.max( 10, tooltipLeft );
this.maybeRemoveTail( posLeft !== tooltipLeft );
this.tooltipElement.setAttribute( ‘style’, ‘top:’ + tooltipTop + ‘px;left:’ + posLeft + ‘px;’ );
this.tooltipElement.classList.add( ‘opened’ );
},
maybeRemoveTail( removeTail ) {
if ( removeTail ) {
this.tooltipElement.classList.add( ‘tr-hide-tail’ );
} else {
this.tooltipElement.classList.remove( ‘tr-hide-tail’ );
}
},
changeMessage( message ) {
if ( ! this.tooltipElement ) {
return;
}
this.tooltipElement.innerHTML = message;
}
};
window.TastyRecipes.ajax = {
sendPostRequest( url, data, success, failure ) {
const xhr = new XMLHttpRequest();
xhr.open( ‘POST’, url, true );
xhr.send( this.preparePostData( data ) );
xhr.onreadystatechange = () => {
if ( 4 !== xhr.readyState ) {
return;
}
if ( xhr.status === 200 ) {
success( JSON.parse( xhr.responseText ) );
return;
}
failure( xhr );
};
xhr.onerror = () => {
failure( xhr );
};
},
preparePostData( data ) {
const formData = new FormData();
for ( const key in data ) {
formData.append( key, data[key] );
}
return formData;
},
};
window.TastyRecipes.ratings = {
defaultRating: 0,
currentRatingPercentage: 100,
savingRating: false,
init( minRating ) {
this.minRating = minRating;
this.formWatchRating();
this.closeTooltipWhenClickOutside();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompFormRatingPosition();
},
formWatchRating() {
const ratings = document.querySelectorAll(‘.tasty-recipes-no-ratings-buttons [data-rating]’);
if ( ratings.length {
event.preventDefault();
this.defaultRating = event.target.closest( ‘.checked’ ).dataset.rating;
this.setCheckedStar( event.target );
this.maybeSendRating( this.defaultRating, event.target );
this.setRatingInForm( this.defaultRating );
} );
}
},
closeTooltipWhenClickOutside() {
window.addEventListener( ‘click’, e => {
// Bailout (don’t remove the tooltip) when the clicked element is a rating star, or it’s the tooltip itself.
if ( e.target.closest( ‘.tasty-recipes-rating’ ) || e.target.classList.contains( ‘tasty-recipes-static-tooltip’ ) ) {
return;
}
window.TastyRecipes.staticTooltip.destroy();
} );
},
setRatingInForm( rating ) {
const ratingInput = document.querySelector( ‘#respond .tasty-recipes-rating[value=”‘ + rating + ‘”]’ );
if ( ! ratingInput ) {
return;
}
ratingInput.click();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = document.querySelectorAll( ‘input.tasty-recipes-rating’ );
if ( ! ratingInputs ) {
return;
}
for ( const ratingInput of ratingInputs ) {
ratingInput.addEventListener( ‘click’, currentEvent => {
const selectedRating = currentEvent.target.getAttribute( ‘value’ );
this.handleBodyClassByRating( selectedRating );
this.toggleCommentTextareaRequired( selectedRating );
} );
}
},
handleBodyClassByRating( rating ) {
if ( rating < this.minRating ) {
document.body.classList.remove( 'tasty-recipes-selected-minimum-rating' );
return;
}
document.body.classList.add( 'tasty-recipes-selected-minimum-rating' );
},
toggleCommentTextareaRequired( rating ) {
const commentTextarea = document.getElementById( 'comment' );
if ( ! commentTextarea ) {
return;
}
if ( rating {
window.TastyRecipes.staticTooltip.changeMessage( response.data.message );
window.TastyRecipes.staticTooltip.show();
this.updateAverageText( response.data, recipeCardElement );
this.maybeFillCommentForm( response.data );
// Hide the tooltip after 5 seconds.
setTimeout( () => {
this.maybeResetTooltip( recipeCardElement, response.data, rating );
}, 5000 );
},
() => {
this.resetTooltip( recipeCardElement );
}
);
},
updateAverageText( data, recipeCardElement ) {
if ( ! data.average ) {
return;
}
this.setRatingPercent( data );
if ( ! data.count ) {
return;
}
const quickLink = document.querySelector( ‘.tasty-recipes-rating-link’ );
if ( quickLink ) {
this.setTextInContainer( quickLink, data );
this.setPartialStar( quickLink );
}
const cardStars = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
cardStars.dataset.trDefaultRating = data.average;
this.setTextInContainer( recipeCardElement.querySelector( ‘.tasty-recipes-rating’ ), data );
},
setTextInContainer( container, data ) {
if ( ! container ) {
return;
}
if ( data.label ) {
const ratingLabelElement = container.querySelector( ‘.rating-label’ );
if ( ratingLabelElement ) {
ratingLabelElement.innerHTML = data.label;
}
return;
}
const averageElement = container.querySelector( ‘.average’ );
if ( averageElement ) {
averageElement.textContent = data.average;
}
const countElement = container.querySelector( ‘.count’ );
if ( countElement ) {
countElement.textContent = data.count;
}
},
setPartialStar( container ) {
const highestStar = container.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( highestStar ) {
highestStar.dataset.trClip = this.currentRatingPercentage;
}
},
setRatingPercent( data ) {
this.defaultRating = data.average.toFixed( 1 );
const parts = data.average.toFixed( 2 ).toString().split( ‘.’ );
this.currentRatingPercentage = parts[1] ? parts[1] : 100;
if ( this.currentRatingPercentage === ’00’ ) {
this.currentRatingPercentage = 100;
}
},
setCheckedStar( target ) {
const cardRatingContainer = target.closest( ‘.tasty-recipes-ratings-buttons’ );
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( selectedRatingElement ) {
delete selectedRatingElement.dataset.trChecked;
}
const thisStar = target.closest( ‘.tasty-recipes-rating’ );
thisStar.dataset.trChecked = 1;
thisStar.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = 100;
},
maybeFillCommentForm( data ) {
if ( ! data.comment || ! data.comment.content ) {
return;
}
const commentForm = document.querySelector( ‘#commentform’ );
if ( ! commentForm ) {
return;
}
const commentBox = commentForm.querySelector( ‘[name=comment]’ );
if ( ! commentBox || commentBox.value ) {
return;
}
// Add comment details for editing.
commentBox.innerHTML = data.comment.content;
if ( data.comment.name ) {
commentForm.querySelector( ‘[name=author]’ ).value = data.comment.name;
commentForm.querySelector( ‘[name=email]’ ).value = data.comment.email;
}
},
maybeResetTooltip( recipeCardElement, data, rating ) {
if ( this.savingRating === rating ) {
this.resetTooltip( recipeCardElement, data );
}
},
resetTooltip( recipeCardElement, data ) {
window.TastyRecipes.staticTooltip.destroy();
this.savingRating = false;
// Reset the default rating.
const cardRatingContainer = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
if ( cardRatingContainer ) {
this.defaultRating = ( data && data.average ) ? data.average.toFixed(1) : cardRatingContainer.dataset.trDefaultRating;
cardRatingContainer.dataset.trDefaultRating = this.defaultRating;
this.resetSelectedStar( cardRatingContainer, data );
}
},
resetSelectedStar( cardRatingContainer ) {
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( selectedRatingElement ) {
selectedRatingElement.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = this.currentRatingPercentage;
selectedRatingElement.parentNode.dataset.trChecked = 1;
}
const previousSelectedElement= cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( previousSelectedElement ) {
const currentSelectedRating = previousSelectedElement.querySelector(‘[data-rating]’);
if ( currentSelectedRating !== selectedRatingElement ) {
delete previousSelectedElement.dataset.trChecked;
}
}
},
backwardCompFormRatingPosition() {
const ratingsButtons = document.querySelector( ‘#respond .tasty-recipes-ratings-buttons, #tasty-recipes-comment-rating .tasty-recipes-ratings-buttons’ );
if ( ! ratingsButtons ) {
return;
}
const ratingsButtonsStyles = window.getComputedStyle(ratingsButtons);
if ( ! ratingsButtonsStyles.display.includes( ‘flex’ ) ) {
ratingsButtons.style.direction = ‘rtl’;
}
if ( typeof tastyRecipesRating !== ‘undefined’ ) {
// Select the rating that was previously selected in admin.
ratingsButtons.querySelector( ‘.tasty-recipes-rating[value=”‘ + tastyRecipesRating + ‘”]’ ).checked = true;
}
const ratingSpans = ratingsButtons.querySelectorAll( ‘.tasty-recipes-rating’ );
for (const ratingSpan of ratingSpans) {
ratingSpan.addEventListener( ‘click’, event => {
if ( ratingSpan === event.target ) {
return;
}
ratingSpan.previousElementSibling.click();
} );
}
}
};
(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
window.addEventListener( ‘load’, callback );
}
})(() => {
window.TastyRecipes.ratings.init( window.trCommon ? window.trCommon.minRating : 4 );
});
The post How To Cook Maitake Mushrooms appeared first on Olives for Dinner.