react-resizable-panels 4.22.0 → 4.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1301,8 +1301,9 @@ and attach a <code>ref</code> that dragging and keyboard focus depend on.</p>
1301
1301
  (call <code>props.onKeyDown</code> for other keys).</p>
1302
1302
  <p>⚠️ Merge <code>className</code> and <code>style</code> rather than replacing them (e.g. <code>style={{ ...props.style, padding: 4 }}</code>):
1303
1303
  they include the <code>tab</code> entries of the <code>classNames</code> and <code>styles</code> props, and <code>style</code> includes the <code>touch-action</code> that touch dragging depends on.</p>
1304
- <p>ℹ️ Pointer and keyboard events from interactive descendants (<code>button</code> elements, <code>role=&quot;button&quot;</code>, or elements with a <code>data-tab-ignore</code> attribute) are ignored,
1305
- so clicking a button within a tab doesn&#39;t select or drag it.</p>
1304
+ <p>ℹ️ Pointer events from interactive descendants (<code>button</code> elements, form controls such as <code>input</code> (and the <code>label</code> elements of form controls), editable content, elements with a <code>button</code> or form control role such as <code>role=&quot;checkbox&quot;</code>, or elements with a <code>data-tab-ignore</code> attribute) are ignored,
1305
+ so clicking a button within a tab doesn&#39;t select or drag it, and pressing within an input (e.g. one used to rename the tab) doesn&#39;t start a drag.
1306
+ Keys pressed within any descendant (rather than the tab itself) are left to it, so they don&#39;t move focus between tabs or close the tab.</p>
1306
1307
  <p>ℹ️ When this prop is not provided, tabs show their title (or id) followed by a <code>TabCloseButton</code>.</p>
1307
1308
  </td>
1308
1309
  </tr>