Skip to content

Commit

Permalink
using webstorm
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Oct 26, 2024
1 parent b007e6b commit 035e597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ The "path" value follows the [URL Pattern syntax](https://developer.mozilla.org/
What *be-reformable* does is:

1. Be default, adds "input" event to the adorned form element.
2. The path parameters use DSS syntax, and as such can specify individual events to attach directly to the specified element within the form.
3. Whenever any of these events are triggered, the action property/attribute of the form is updated according to the base link and pat.

Another optional parameter not shown above is "fetchOptions" which allows for binding to an object that specifies the second parameter (init / reqInit/ options) of the fetch request. To hardcode this parameter, use initVal.
2. When the event occurs, it uses the baseLink + path to set the target value of the form element.
3. Triggers event "target-changed"



Expand Down
1 change: 1 addition & 0 deletions be-reformable.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class BeReformable extends BE {
pathBuilder.push(inp.value);
}
enhancedElement.target = pathBuilder.join('');
enhancedElement.dispatchEvent(new Event('target-changed'))
return /** @type {PAP} */({
});
}
Expand Down

0 comments on commit 035e597

Please sign in to comment.