[MGNLUI-6483] linkField: Setting path manually in dropdown list not working Created: 22/Dec/20  Updated: 03/Aug/21  Resolved: 25/Feb/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.5
Fix Version/s: 6.2.7

Type: Bug Priority: Neutral
Reporter: Monica Damborenea Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: VN-Testing
Remaining Estimate: Not Specified
Time Spent: 1d 1h 11m
Original Estimate: Not Specified

Attachments: PNG File link.png    
Issue Links:
Problem/Incident
Relates
relates to MGNLCAT-188 UX review of migrated categories app Closed
relates to MGNLUI-6530 Improve LinkField with a select menu ... Closed
causality
caused by MGNLUI-5798 Make link field extend select field a... Closed
caused by MGNLUI-6411 When displaying a link field, the com... Closed
is causing MGNLUI-6672 Cannot disable automatic sorting in c... Closed
supersession
is superseded by MGNLUI-6530 Improve LinkField with a select menu ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: Improve Content Linking
Sprint: UI FW 22
Story Points: 0

 Description   

Steps to reproduce

  1.  Use a linkField or pageLinkField
  2.  Try to set manually a path in the link, for example, '/travel'
  3. The values shown in the dropdown are not ordered correctly as the first result should be just the '/travel' page (if you scroll down you should be able to see it at the bottom)
  4. It is not possible to save the manually entered value either by pressing enter on your keyboard or clicking outside of the link field with your mouse. The first value in the dropdown list is always selected if you do that. It is not possible to save the value unless it's selected in the dropdown list.

This works as expected with UI5 in the old pages app.

The customer that reported this issue has many pages and they are unable to find the relevant one or enter manually the one they'd like.

Expected results

The customer should be able to enter the path manually and save it + the entered value should be the first option we offer.

Actual results

It is not possible to save the value unless it's selected in the dropdown.

 



 Comments   
Comment by Roman Kovařík [ 22/Dec/20 ]

https://jira.magnolia-cms.com/browse/MGNLUI-6411?focusedCommentId=241671&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-241671

 

Comment by Roman Kovařík [ 27/Jan/21 ]

Possible workaround:

        linkField:
          $type: linkField
          filteringMode: startsWith
          datasource:
            $type: jcrDatasource
            workspace: website
            describeByProperty: title //title as label
            sortable: true //sort items in link field
            allowedNodeTypes:
             - mgnl:page
Generated at Mon Feb 12 09:36:55 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.