AdvancedCustomFields / AdvancedCustomFields/acf

Cancel on "Insert/edit link" popup still changes value

Open
#311 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Current behaviour:
The "cancel" button in the "Inser/edit link" popup still transfers any value input into the popup to the link.

Expected behaviour:
The popup closes and the link's value remains unchanged

Steps to reproduce:

  1. Create a custom field with the type "link"

  2. Navigate to where it the field is and click "Select Link"
    1_select_link_button

  3. Input anything in the URL field and click "cancel"
    2_select_link_popup

  4. Link is now selected even though it shouldn't be
    3_result

  5. This can now be repeated by clicking the "edit"-pen

Versions tested:
WordPress 5.3.2 and 5.4.1
ACF 5.8.11 as well as ACF Pro 5.8.7 and 5.8.11

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a custom Link field using the listed steps, then inspect the implementation of the “Insert/edit link” popup and its cancel action. Done means cancel closes the popup without changing the existing link value, including after reopening it with the edit control.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.