-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Changelog: * Feature(frontend): Set `inputmode` in `TagsSelector`. * Fix(frontend): `TagsSelector` enter button was not visible on phones. * Fix(frontend): Country code selector in phone field. * Fix(frontend): Fk field focus inside modal. * Fix(frontend): Invalid value in number field. Closes: vst/vst-utils#618+ Closes: vst/vst-utils#619+ Closes: vst/vst-utils#621+ See merge request vst/vst-utils!619
- Loading branch information
Showing
8 changed files
with
50 additions
and
4 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
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
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
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
30 changes: 30 additions & 0 deletions
30
frontend_src/vstutils/fields/text/__tests__/phone-field.test.ts
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,30 @@ | ||
import { expect, test, describe } from '@jest/globals'; | ||
import { createApp, createSchema, mount } from '@/unittests'; | ||
|
||
describe('PhoneField', () => { | ||
test('country code selector is rendered', async () => { | ||
const app = await createApp({ | ||
schema: createSchema(), | ||
}); | ||
|
||
const phoneField = app.fieldsResolver.resolveField({ | ||
name: 'phone', | ||
type: 'string', | ||
format: 'phone', | ||
}); | ||
|
||
const wrapper = mount({ | ||
template: '<PhoneField :field="field" :data="{}" type="edit" />', | ||
components: { | ||
PhoneField: phoneField.getComponent(), | ||
}, | ||
setup() { | ||
return { | ||
field: phoneField, | ||
}; | ||
}, | ||
}); | ||
|
||
expect(wrapper.find('select').exists()).toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# pylint: disable=django-not-available | ||
__version__: str = '5.8.17' | ||
__version__: str = '5.8.18' |