apprun 3.37.2 → 3.37.3
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/CHANGELOG.md +4 -0
- package/README.md +2 -0
- package/dist/apprun-code.js +1 -1
- package/dist/apprun-code.js.map +1 -1
- package/dist/apprun-html.esm.js +1 -1
- package/dist/apprun-html.esm.js.map +1 -1
- package/dist/apprun-html.js +1 -1
- package/dist/apprun-html.js.map +1 -1
- package/dist/apprun-play-html.esm.js +1 -1
- package/dist/apprun-play-html.esm.js.map +1 -1
- package/dist/apprun-play.js +1 -1
- package/dist/apprun-play.js.map +1 -1
- package/dist/apprun.esm.js +1 -1
- package/dist/apprun.esm.js.map +1 -1
- package/dist/apprun.js +1 -1
- package/dist/apprun.js.map +1 -1
- package/esm/vdom-my-prop-attr.js +2 -2
- package/esm/vdom-my-prop-attr.js.map +1 -1
- package/jsx-runtime.js +1 -1
- package/jsx-runtime.js.map +1 -1
- package/package.json +1 -1
- package/src/vdom-my-prop-attr.ts +2 -2
package/package.json
CHANGED
package/src/vdom-my-prop-attr.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Standards-compliant property/attribute handling with caching and special element support
|
|
4
4
|
* Features: Skip logic for preserving user interactions during VDOM reconciliation
|
|
5
5
|
* Exports: updateProps - Main function for DOM element property updates
|
|
6
|
-
* Updated: 2025-01-14 -
|
|
6
|
+
* Updated: 2025-01-14 - Skip logic for focus-sensitive (selection), scroll, and media properties
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { find, html, svg } from 'property-information';
|
|
@@ -192,7 +192,7 @@ function setAttributeOrProperty(element: Element, name: string, value: any, isSv
|
|
|
192
192
|
// Skip logic for preventing user interaction disruption during VDOM reconciliation
|
|
193
193
|
function shouldSkipPatch(dom: HTMLElement, prop: string): boolean {
|
|
194
194
|
if (document.activeElement === dom) {
|
|
195
|
-
return ['
|
|
195
|
+
return ['selectionStart', 'selectionEnd', 'selectionDirection']
|
|
196
196
|
.includes(prop);
|
|
197
197
|
}
|
|
198
198
|
if (prop === 'scrollTop' || prop === 'scrollLeft') {
|