Skip to content

Commit

Permalink
Query filter block: Update HTML directive with correct name
Browse files Browse the repository at this point in the history
At some point, `wp-effect` was changed to `wp-watch`, so these callbacks had not been firing. This fixes the name so the focus and positioning callbacks run when the modal opens.
  • Loading branch information
ryelle committed Dec 3, 2024
1 parent b90ab63 commit 96c49bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mu-plugins/blocks/query-filter/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ class="wporg-query-filter__modal-backdrop"
class="<?php echo esc_attr( implode( ' ', $modal_classes ) ); ?>"
id="<?php echo esc_attr( $html_id ); ?>"
data-wp-bind--hidden="!context.isOpen"
data-wp-effect--focus="effects.focusFirstElement"
data-wp-effect--position="effects.checkPosition"
data-wp-watch--focus="effects.focusFirstElement"
data-wp-watch--position="effects.checkPosition"
>
<form
action="<?php echo esc_attr( $settings['action'] ); ?>"
Expand Down

0 comments on commit 96c49bb

Please sign in to comment.