-
Notifications
You must be signed in to change notification settings - Fork 91
gw-populate-date.php
: Added support for dynamic populated modifier values trigerring Populate Date updates.
#1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…values trigerring Populate Date updates.
WalkthroughThis pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Browser as Browser
participant Modifier as Modifier Field
participant Listener as Event Listener
participant DateFunc as populateDate Function
Modifier->>Listener: User changes field value
Listener->>DateFunc: Call populateDate()
DateFunc-->>Browser: Update date field dynamically
Possibly related PRs
Suggested reviewers
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Context
⛑️ Ticket(s): https://secure.helpscout.net/conversation/2875355741/79394
Summary
Populate Date Snippet doesn't work when modifying the date by field value and the input field is populated.
If the source date is selected, a change in modifier value (via GPPA) does not trigger the target date field update. This PR proposes adding a check for the dynamic content loaded and triggering further updates.
BEFORE:
https://www.loom.com/share/05c946d24eaf4fd4a7132ff98e075ef8
AFTER:
https://www.loom.com/share/4dc0dc1ee8fd4cfb859aa79029a9c81e