Closed (fixed)
Project:
UI Patterns (SDC in Drupal UI)
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2024 at 21:06 UTC
Updated:
9 Dec 2024 at 17:29 UTC
Jump to comment: Most recent
Comments
Comment #3
grimreaperComment #4
just_like_good_vibesthe check seems a bit weak.
what cases we have?
integers, strings, markup, render array ?!, bool, floats, arrays...? who knows
i guess we wan't to keep the normalizing efficient and simple while
protecting against bad data injected, whatever it comes
from.
do we add other cases?
Comment #5
just_like_good_vibesmore generally, do we need a better normalizing for string props? in that case the title of a link maybe normalized the same way string props are/would be normalized ?
Comment #6
pdureau commentedUnfortunately, we cant' apply StringPropType normalization to links item titles, because we discovered than links item titles can be renderables.
Comment #8
pdureau commentedComment #9
just_like_good_vibesaccording to comments from #3491238: [2.0.0-beta6] normalization of slots triggers some unwanted filtering,
there are new work to do on normalization.
i have opened a new separate issue https://www.drupal.org/project/ui_patterns/issues/3492211
Comment #10
pdureau commentedComment #11
pdureau commented