Fixed #6025 - InputMask: Passed props are not set

pull/6101/head
tugcekucukoglu 2024-07-22 09:17:31 +03:00
parent f26bb8d023
commit 00e879e304
2 changed files with 10 additions and 1 deletions

View File

@ -64,6 +64,11 @@ export interface InputMaskPassThroughOptions {
* @see {@link InputTextPassThroughOptions}
*/
root?: InputTextPassThroughOptions<InputMaskSharedPassThroughMethodOptions>;
/**
* Used to pass attributes to the InputText component.
* @see {@link InputTextPassThroughOptions}
*/
pcInputText?: InputTextPassThroughOptions<InputMaskSharedPassThroughMethodOptions>;
/**
* Used to manage all lifecycle hooks.
* @see {@link BaseComponent.ComponentHooks}

View File

@ -15,13 +15,14 @@
@keydown="onKeyDown"
@keypress="onKeyPress"
@paste="onPaste"
:pt="ptmi('root', ptmParams)"
:pt="rootPTOptions"
/>
</template>
<script>
import { getUserAgent } from '@primeuix/utils/dom';
import InputText from 'primevue/inputtext';
import { mergeProps } from 'vue';
import BaseInputMask from './BaseInputMask.vue';
export default {
@ -521,6 +522,9 @@ export default {
inputClass() {
return [this.cx('root'), this.class];
},
rootPTOptions() {
return mergeProps(this.ptmi('root', this.ptmParams), this.ptm('pcInputText', this.ptmParams));
},
ptmParams() {
return {
context: {