CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 18:06:30 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/SAP/fundamental-react.git
etag: W/"70b7d3ca54872de8e626489e847ee5d8"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=wiJkrYP8jgtGxgsDewvqeCrzpvdHJWtpWhi3KYtzzyFORgh9YjQHG0lru2RhNppc3ZE%2BEJ8mepv6aCzU1qBJZiqPOIvdBV2LAPqCE4%2FxMAH8GiX5ocq6OXCz9kUZ%2FFzrGMUsFLq1MHKqUBCCy83pydregbXDeN6PZqa62LntlPq7goS%2F%2BZKOe2E3b4OSl%2Fe7pOxmvAUQFi%2B9I9LbC8%2BBBVFf15b8d9whSopw648tzpwoLuxWK5kp6kJdCu0R91DaluG9zSU6NRnXl3ZdIG2g5g%3D%3D--SsggQZU%2Bx9rVqe%2Fd--Tm%2BUT21CpfwM52xpvZSl7w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2144760032.1753812389; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 18:06:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 18:06:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B234:1FE4B6:EEA8FC:11A0FA7:68890DA5
feat: add onSelect callback to ComboboxInput;Select;SearchInput (#958) · SAP/fundamental-react@21b26cb · GitHub
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.Component.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.test.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/__snapshots__/ComboboxInput.test.js.snap
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit 21b26cb
authored
feat: add onSelect callback to ComboboxInput;Select;SearchInput (#958)
* feat/add-control-callbacks-replace-control-lists-with-options-array
* tests(FormSelect): Add an onSelect test
[BREAKING]:
- ComboboxInput no longer takes a list prop, instead, it takes an options array of shape {key, text}
- Select no longer takes children, instead, it takes an options array of shape {key, text}1 parent 6eb5708 commit 21b26cbCopy full SHA for 21b26cb
File tree
Expand file treeCollapse file tree
13 files changed
+343
-323
lines changedFilter options
- src
- ComboboxInput
- __snapshots__
- __stories__
- Forms
- SearchInput
- Select
- __snapshots__
- __stories__
- _playground/documentation/Properties
Expand file treeCollapse file tree
13 files changed
+343
-323
lines changedsrc/ComboboxInput/ComboboxInput.Component.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.Component.js+13-23Lines changed: 13 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
| |
2 | 3 |
| |
3 |
| - | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
23 | 13 |
| |
24 | 14 |
| |
25 | 15 |
| |
| |||
30 | 20 |
| |
31 | 21 |
| |
32 | 22 |
| |
33 |
| - | |
| 23 | + | |
34 | 24 |
| |
35 | 25 |
| |
36 | 26 |
| |
37 |
| - | |
| 27 | + | |
38 | 28 |
| |
39 | 29 |
| |
40 | 30 |
| |
41 | 31 |
| |
42 | 32 |
| |
43 | 33 |
| |
44 | 34 |
| |
45 |
| - | |
| 35 | + | |
46 | 36 |
| |
47 | 37 |
| |
48 | 38 |
| |
49 |
| - | |
| 39 | + | |
50 | 40 |
| |
51 | 41 |
| |
52 | 42 |
| |
53 |
| - | |
| 43 | + | |
54 | 44 |
| |
55 | 45 |
| |
56 | 46 |
| |
57 |
| - | |
| 47 | + | |
58 | 48 |
| |
59 | 49 |
| |
60 | 50 |
| |
|
src/ComboboxInput/ComboboxInput.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.js+37-10Lines changed: 37 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
13 |
| - | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
| 23 | + | |
| 24 | + | |
22 | 25 |
| |
23 | 26 |
| |
24 | 27 |
| |
25 | 28 |
| |
26 | 29 |
| |
| 30 | + | |
27 | 31 |
| |
28 | 32 |
| |
29 | 33 |
| |
| |||
43 | 47 |
| |
44 | 48 |
| |
45 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
46 | 59 |
| |
47 | 60 |
| |
48 | 61 |
| |
| |||
55 | 68 |
| |
56 | 69 |
| |
57 | 70 |
| |
58 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
59 | 80 |
| |
60 | 81 |
| |
61 | 82 |
| |
| |||
72 | 93 |
| |
73 | 94 |
| |
74 | 95 |
| |
75 |
| - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
76 | 99 |
| |
77 | 100 |
| |
78 | 101 |
| |
| |||
88 | 111 |
| |
89 | 112 |
| |
90 | 113 |
| |
| 114 | + | |
91 | 115 |
| |
92 | 116 |
| |
93 | 117 |
| |
| |||
96 | 120 |
| |
97 | 121 |
| |
98 | 122 |
| |
99 |
| - | |
100 | 123 |
| |
101 | 124 |
| |
102 | 125 |
| |
103 | 126 |
| |
104 | 127 |
| |
105 | 128 |
| |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
106 | 133 |
| |
107 | 134 |
| |
| 135 | + | |
108 | 136 |
| |
109 | 137 |
| |
110 | 138 |
| |
111 | 139 |
| |
112 |
| - | |
| 140 | + | |
| 141 | + | |
113 | 142 |
| |
114 | 143 |
| |
115 | 144 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
121 | 148 |
| |
122 | 149 |
| |
123 | 150 |
|
src/ComboboxInput/ComboboxInput.test.js
Copy file name to clipboardExpand all lines: src/ComboboxInput/ComboboxInput.test.js+45-24Lines changed: 45 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 | 2 |
| |
4 | 3 |
| |
5 | 4 |
| |
6 | 5 |
| |
7 | 6 |
| |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
24 | 13 |
| |
25 | 14 |
| |
26 | 15 |
| |
27 |
| - | |
| 16 | + | |
28 | 17 |
| |
29 | 18 |
| |
30 | 19 |
| |
31 | 20 |
| |
32 | 21 |
| |
33 | 22 |
| |
34 | 23 |
| |
35 |
| - | |
| 24 | + | |
36 | 25 |
| |
37 | 26 |
| |
38 | 27 |
| |
| |||
50 | 39 |
| |
51 | 40 |
| |
52 | 41 |
| |
53 |
| - | |
| 42 | + | |
54 | 43 |
| |
55 | 44 |
| |
56 | 45 |
| |
57 | 46 |
| |
58 | 47 |
| |
59 | 48 |
| |
60 | 49 |
| |
61 |
| - | |
| 50 | + | |
62 | 51 |
| |
63 | 52 |
| |
64 | 53 |
| |
65 | 54 |
| |
66 | 55 |
| |
67 | 56 |
| |
68 | 57 |
| |
69 |
| - | |
| 58 | + | |
70 | 59 |
| |
71 | 60 |
| |
72 | 61 |
| |
73 | 62 |
| |
74 | 63 |
| |
75 | 64 |
| |
76 | 65 |
| |
77 |
| - | |
| 66 | + | |
78 | 67 |
| |
79 | 68 |
| |
80 | 69 |
| |
81 | 70 |
| |
82 | 71 |
| |
83 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
84 | 105 |
| |
85 | 106 |
| |
86 | 107 |
| |
87 | 108 |
| |
88 | 109 |
| |
89 | 110 |
| |
90 | 111 |
| |
91 |
| - | |
| 112 | + | |
92 | 113 |
| |
93 | 114 |
| |
94 | 115 |
| |
|
src/ComboboxInput/__snapshots__/ComboboxInput.test.js.snap
Copy file name to clipboardExpand all lines: src/ComboboxInput/__snapshots__/ComboboxInput.test.js.snap+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
|
You can’t perform that action at this time.
0 commit comments