-
Notifications
You must be signed in to change notification settings - Fork 78
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
Datagrid: Adding additional span element causes incorrect editor values #4637
Comments
What do you mean by
|
I encountered it when I added a "< span class=audible >" element with tooltip text content on a cell with alerts. It returned the tooltip text with value. I just use the Tag component as an example. Please also check this video for reference > https://jira.lawson.com/secure/attachment/1397574/CU75-DetailTrackedErrorMessage.mp4 For your question 1, it is the text returned for invalid range that is inserted on the "< span class=audible >" as text content. |
So you just want the editor to let you edit the value you see i the cell? |
Yes. Thank you! |
Hi @bemariepedragosa i noticed the example isnt working anymore to illustrate the issue. It looks broken now? |
Hi @tmcconechy , |
Weird ok thanks yes it's working now , sorry about that might have been an issue on my end |
Add this on 41d0048 |
This issue is now resolved. |
hi Tim. this is one of the identified High Priority VPAT items. thanks. |
Hi @tmcconechy , The method formatDisplayAlert within lm-formatter.service.ts inserted an additional element, that causes cellNode.text() (within makeCellEditable) to return the alert tooltip with the value.
The value resets to 0 after clicking outside the field. |
@bemariepedragosa it seems to be working on https://master-enterprise.demo.design.infor.com/components/datagrid/test-editable-alerts as far as i can tell. Does it work here ok for you? If so maybe you need to adjust something so whats in the video works. Or alternatively can you tell me how to reproduce it in datagrid/test-editable-alerts ? BTW i think this is a bit of a wierd use case and i dont think it should be done but added support for it anyways so something to think about.... |
Hi Tim, Below is the value for formatter used in datagrid in landmark apps: Can we add additional condition for this? Like, enable this.editor.useValue if it has a class attribute datagrid-alert-icon on cellNode. Proposed solution: var cellNode = this.activeCell.node.find('.datagrid-cell-wrapper'); if (hasAlertIcon) { Thank you! |
Hi. On the surface that change seems like it might be ok. But im not sure where that would go. Can you maybe do a pull request with the fix and include a way to test it? Thanks |
Describe the bug
Inserted additional element with the info/alert text that causes cellNode.text() in sohoxi.js > makeCellEditable function returned the alert tooltip with the value.
I can also replicate it on Tag component.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It will returned the original value
Actual behavior
It returned the field value with text content
Version
-ids-enterprise: [e.g. v4.34]
Platform
The text was updated successfully, but these errors were encountered: