-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input-stepper): add parseNumber and formatNumber to format the va… (
#2312) * fix(input-stepper): add parseNumber and formatNumber to format the value based on locale * Update packages/ui/components/input-stepper/test/lion-input-stepper.test.js * Update packages/ui/components/input-stepper/test/lion-input-stepper.test.js
- Loading branch information
1 parent
58796de
commit cdf0a9e
Showing
5 changed files
with
100 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lion/ui': patch | ||
--- | ||
|
||
[input-stepper] add parseNumber and formatNumber to format the value based on locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/ui/components/input-stepper/test/lion-input-stepper-integrations.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
runInteractionStateMixinSuite, | ||
runFormatMixinSuite, | ||
} from '@lion/ui/form-core-test-suites.js'; | ||
|
||
import '@lion/ui/define/lion-input-stepper.js'; | ||
|
||
const tagString = 'lion-input-stepper'; | ||
|
||
describe('<lion-input-stepper> integrations', () => { | ||
runInteractionStateMixinSuite({ | ||
tagString, | ||
allowedModelValueTypes: [Number], | ||
}); | ||
|
||
runFormatMixinSuite({ | ||
tagString, | ||
modelValueType: Number, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters