Skip to content
Snippets Groups Projects
Verified Commit b355ac89 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: update doc, small issues, etc #274

parent 660b649e
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@ const queueSymbol = Symbol("queue");
*
* @fragments /fragments/components/notify/notify
*
* @example /examples/components/notify/notify-simple
* @example /examples/components/notify/notify-inline
* @example /examples/components/notify/notify-simple Notify
* @example /examples/components/notify/notify-inline Inline Notify
*
* @issue https://localhost.alvine.dev:8443/development/issues/closed/269.html
*
......
......@@ -44,7 +44,7 @@ const emptyStateElementSymbol = Symbol("emptyStateElement");
*
* @fragments /fragments/components/state/log
*
* @example /examples/components/state/log-simple
* @example /examples/components/state/log-simple Log
*
* @issue https://localhost.alvine.dev:8444/development/issues/closed/270.html
*
......
......@@ -27,7 +27,7 @@ export { State };
*
* @fragments /fragments/components/state/state
*
* @example /examples/components/state/state-simple
* @example /examples/components/state/state-simple State
*
* @since 1.5.0
* @copyright schukai GmbH
......
......@@ -196,23 +196,26 @@ const ATTRIBUTE_UPDATER_BIND = `${ATTRIBUTE_PREFIX}bind`;
/**
* @type {string}
* @license AGPLv3
* @since 3.73.0
* @since 1.9.0
*/
const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;
const ATTRIBUTE_UPDATER_BIND_TYPE = `${ATTRIBUTE_UPDATER_BIND}-type`;
/**
* @type {string}
* @license AGPLv3
* @deprecated since 2024-12-29
* @since 3.73.0
*/
const ATTRIBUTE_FORM_BIND_TYPE = `${ATTRIBUTE_PREFIX}form-bind-type`;
const ATTRIBUTE_FORM_BIND = `${ATTRIBUTE_PREFIX}form-bind`;
/**
* @type {string}
* @license AGPLv3
* @since 1.9.0
* @since 3.73.0
* @deprecated since 2024-12-29
*/
const ATTRIBUTE_UPDATER_BIND_TYPE = `${ATTRIBUTE_UPDATER_BIND}-type`;
const ATTRIBUTE_FORM_BIND_TYPE = `${ATTRIBUTE_PREFIX}form-bind-type`;
/**
* @type {string}
......
......@@ -74,7 +74,7 @@ class Updater extends Base {
* @param {object|ProxyObserver|undefined} subject
* @throws {TypeError} value is not a object
* @throws {TypeError} value is not an instance of HTMLElement
* @see {@link Monster.DOM.findDocumentTemplate}
* @see {@link findDocumentTemplate}
*/
constructor(element, subject) {
super();
......@@ -305,6 +305,7 @@ function getControlEventHandler() {
if (element === undefined) {
return;
}
queueMicrotask(() => {
retrieveAndSetValue.call(this, element);
});
......@@ -850,11 +851,7 @@ function handleInputControlAttributeUpdate(element, name, value) {
switch (element.type) {
case "select-multiple":
for (const [index, opt] of Object.entries(element.options)) {
if (value.indexOf(opt.value) !== -1) {
opt.selected = true;
} else {
opt.selected = false;
}
opt.selected = value.indexOf(opt.value) !== -1;
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment