Commit cf8333b
committed
fix: Textarea enter_key_submit uses add_custom_code instead of _get_all_custom_code
The Textarea component's auto_height and enter_key_submit features relied on
overriding _get_all_custom_code to inject JavaScript helper functions. However,
the compiler's builtin plugin collects custom code via _get_custom_code (singular)
and add_custom_code, not _get_all_custom_code (plural). This caused both
autoHeightOnInput and enterKeySubmitOnKeyDown to be missing from compiled pages,
resulting in ReferenceError at runtime.
Fix by implementing add_custom_code (the intended mechanism for injecting
module-level JS) and removing the _get_all_custom_code override, since the
parent class already merges add_custom_code results into _get_all_custom_code.
Fixes #64821 parent 941f9bb commit cf8333b
1 file changed
Lines changed: 11 additions & 7 deletions
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
773 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
774 | 778 | | |
775 | 779 | | |
776 | | - | |
| 780 | + | |
777 | 781 | | |
778 | | - | |
| 782 | + | |
779 | 783 | | |
780 | | - | |
| 784 | + | |
781 | 785 | | |
782 | | - | |
783 | | - | |
| 786 | + | |
| 787 | + | |
784 | 788 | | |
785 | 789 | | |
786 | 790 | | |
| |||
0 commit comments