fix: #83 switching to wish product tab breaks view

This commit is contained in:
grandeljay 2023-08-17 12:50:45 +02:00
parent 4e36305fbc
commit 7027012539
2 changed files with 11 additions and 2 deletions

View file

@ -204,7 +204,7 @@ $(function () {
* Initialise
*/
/** Checkbox */
const checkbox_is_purchasable = wish_edit.find('.ui.checkbox.wish-is-purchasable');
var checkbox_is_purchasable = wish_edit.find('.ui.checkbox.wish-is-purchasable');
checkbox_is_purchasable
.checkbox({
@ -238,7 +238,9 @@ $(function () {
/** Initialise Tabs */
wish_edit.find('.item[data-tab]')
.tab();
.tab({
'context' : '.wishlist-wish-edit'
});
/** General */
var decoded_title = $('<div>').html(wish_local.title).text();

View file

@ -128,6 +128,13 @@ $page->navigation();
<h3 class="ui header"><?= __('Fixed') ?></h3>
<ul>
<li>
<?php
/** TRANSLATORS: Changelog: Fixed */
echo __('Switching to wish "product" tab breaks view');
?>
<a href="https://github.com/grandeljay/wishthis/issues/83" target="_blank">#83</a>
</li>
<li>
<?php
/** TRANSLATORS: Changelog: Fixed */