An odd issue - letter `p` is not working in form input fields

Hi,

I have come across an odd issue in one of my projects.

When I input any text in the form input fields, the letter ‘p’ doesn’t work. All the other letters can be typed in the input fields, but letter ‘p’ doesn’t register any character at all.

I have restarted the laptop, checked with the external keyboard, reset the keyboard, no luck.

This had been working correctly. I have looked through the list of last 4-5 GIT records and nothing stands out that would have caused this issue.

Any help in resolving the issue is greatly appreciated.

weird...

It needs some tests to see where this behavior come from.

This happens to ALL your input fields of that page?

Yes, it's happening on all the input fields linked to the same layout page (Node SPA).

all of the input fields:

  • are type="text"
  • no (validation rules) I MEANT pattern

Is there any javascript function or eventListener running? on document or other related element?

*Also you have a default value set? (value="" or dynamic value)

All of these input fields are type text fields and there's no pattern.

Some fields have dynamic value. The letter p is not typing in all the fields.

I have tested without referencing the custom javascripts, custom styles, different browsers and it still didn't work. So, there must be something else stopping it from adding a character.

Do you have other layout page to test there the input?
(or can you create one and deleted aftre the testing)

Javascript is tricky... maybe there is a kind of caching
Can you test it in a private browser window? or other browser?

can you paste inside the input a word that contains the 'p'?
for example "pasted"

I have tested in different browsers and in private mode - same result.

I can paste a word with letter p.

It's working in a different layout.

sorry to tell you but then you have to start eliminating the declarations and see when this stops...
Then you will know which declaration (component or something other) cause this behavior

If this was working yesterday or the day before yesterday I would recomment to try to remember what was your last additions in the layout so start eliminating them first..

1 Like

I rememerd a related issue I had on 6.1.2...

It seems what you have suggested is the only way to figure out if any JS or style is causing this issue.

Thanks for your help, Tasos. I really appreciate this :slightly_smiling_face:

1 Like

There's nothing else brother...

  • If your keyboard 'p' is not broken
  • if it works on other layout pages
    I wish I'm mistaken because that's very annoying...

Have you checked in case you have accidentally created a key press event?

1 Like

Hi @Hyperbytes,

That was the issue. I had been testing a JS code to prevent the shortcut to print a page (CTRL + P). I had removed the JS Code, but I didn’t remember to remove its reference in the html, and that interfered with the key press of letter ‘p’ only.

I have removed the reference in html now and it is working correctly.

Thank you for your assistance in resolving this issue. Your continued support is greatly appreciated. You're a legend :+1:t4:

2 Likes