forked from phoenixframework/phoenix_live_view
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relates to: phoenixframework#3097 Relates to: phoenixframework#3033 Relates to: phoenixframework#2318 Relates to: phoenixframework#3076 This reverts the changes made in phoenixframework#3097 and phoenixframework#3033. It adds one small change to the original behavior to clear the throttle timeout on blur. For cases where the user wants to get the latest value on blur when throttle is used, adding a `phx-blur={JS.dispatch("change")}` is the way to go: ``` <input name="tick_frequency" type="range" min="100" max="1000" value={@tick_frequency} phx-throttle="2000" phx-change="change-tick-frequency" phx-blur={JS.dispatch("change")} /> ```
- Loading branch information
Showing
2 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters