-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: chip typeahead value placement #1748
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). dojo.widgets – ./🔍 Inspect: https://vercel.com/dojo/dojo.widgets/GDd3j7fhCSaV8sWymhHmoCs3rGo1 widget-test-docs – ./🔍 Inspect: https://vercel.com/dojo/widget-test-docs/89UZhuQZwrEKXrruXhiayKz4WjSH |
Codecov Report
@@ Coverage Diff @@
## master #1748 +/- ##
==========================================
- Coverage 90.46% 90.45% -0.02%
==========================================
Files 94 94
Lines 5152 5155 +3
Branches 1406 1408 +2
==========================================
+ Hits 4661 4663 +2
Misses 241 241
- Partials 250 251 +1
Continue to review full report at Codecov.
|
src/text-input/index.tsx
Outdated
@@ -8,6 +8,7 @@ import { formatAriaProperties } from '../common/util'; | |||
import HelperText from '../helper-text/index'; | |||
import Label from '../label/index'; | |||
import * as css from '../theme/default/text-input.m.css'; | |||
import { isArray } from 'util'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this is a correct import
src/text-input/index.tsx
Outdated
@@ -226,6 +227,11 @@ export const TextInput = factory(function TextInput({ | |||
const inputFocused = focus.isFocused('input'); | |||
const autofilled = Boolean(icache.get('autofilled')); | |||
|
|||
let leadingElements; | |||
if (leading) { | |||
leadingElements = isArray(leading) ? leading : [leading]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.isArray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEMPORARY INSANITY
Type: bug
The following has been addressed in the PR:
.dojorc
theme.variant()
is added to the root domnodetheme.compose
like thisDescription:
This pull request fixes an issue where chip values were not wrapped inline with the input.
Resolves #1742