Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: revert usage of withIgnoreIMEEvents
  • Loading branch information
yogeshbhutkar committed Jun 2, 2025
commit adac9740f51152eff7581348e66aedee9967d086
8 changes: 2 additions & 6 deletions packages/block-library/src/details/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ToggleControl,
__experimentalToolsPanel as ToolsPanel,
__experimentalToolsPanelItem as ToolsPanelItem,
privateApis as componentsPrivateApis,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useState } from '@wordpress/element';
Expand All @@ -23,9 +22,6 @@ import { useSelect } from '@wordpress/data';
* Internal dependencies
*/
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
import { unlock } from '../lock-unlock';

const { withIgnoreIMEEvents } = unlock( componentsPrivateApis );

const TEMPLATE = [
[
Expand Down Expand Up @@ -124,8 +120,8 @@ function DetailsEdit( { attributes, setAttributes, clientId } ) {
onToggle={ ( event ) => setIsOpen( event.target.open ) }
>
<summary
onKeyDown={ withIgnoreIMEEvents( handleSummaryKeyDown ) }
onKeyUp={ withIgnoreIMEEvents( handleSummaryKeyUp ) }
onKeyDown={ handleSummaryKeyDown }
onKeyUp={ handleSummaryKeyUp }
>
<RichText
identifier="summary"
Expand Down
2 changes: 0 additions & 2 deletions packages/components/src/private-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ComponentsContext } from './context/context-system-provider';
import Theme from './theme';
import { Tabs } from './tabs';
import { kebabCase, normalizeTextString } from './utils/strings';
import { withIgnoreIMEEvents } from './utils/with-ignore-ime-events';
import { lock } from './lock-unlock';
import Badge from './badge';

Expand All @@ -19,7 +18,6 @@ lock( privateApis, {
Theme,
Menu,
kebabCase,
withIgnoreIMEEvents,
Badge,
normalizeTextString,
} );