altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

CEF Input-Cursor not blinking in iframes

Open gt4ever1988 opened this issue 3 years ago • 18 comments

Client/server version rc/6.0-rc12

Current behavior When a CEF is opened in which an input, text area or other input option is available, the text cursor is not displayed. By text cursor I mean the line that flashes to identify the position of the text character. In F8-Console the text cursor works.

gt4ever1988 avatar Sep 16 '21 19:09 gt4ever1988

Do you use data: urls somewhere in your code?

zziger avatar Sep 16 '21 20:09 zziger

I have the same problem with rc/6.0-rc13. I'm not using any data: urls but iframes.

lokuPadoku avatar Sep 17 '21 06:09 lokuPadoku

Does it also happen outside of a iframe?

FabianTerhorst avatar Sep 17 '21 07:09 FabianTerhorst

No

lokuPadoku avatar Sep 17 '21 11:09 lokuPadoku

Same issue on 6.0-rc14

gt4ever1988 avatar Sep 17 '21 12:09 gt4ever1988

can confirm on 6.0-rc14

my mousewheel isnt working inside

eiksch avatar Sep 17 '21 13:09 eiksch

can confirm on 6.0-rc14

my mousewheel isnt working inside

please create a separate issue

ThomasMarangoni avatar Sep 17 '21 13:09 ThomasMarangoni

Same issue on rc/6.0-rc16

https://youtu.be/Pn5aPBsLTRM

>> Maybe the same from 1061? (A bug in cef and was only present in release branch)

gt4ever1988 avatar Sep 27 '21 19:09 gt4ever1988

Cannot reproduce it with a simple webview with iframe. Both scroll & input cursor work fine on 6.0-rc16

vadzz-dev avatar Sep 27 '21 20:09 vadzz-dev

@gt4ever1988 Can you pls provide a alt:V resource that can reproduce this issue?

DurtyFree avatar Sep 29 '21 09:09 DurtyFree

I have now tried 3 variants @DurtyFree:

  1. Open CEF / there is direct a input in the HTML ... works perfectly
  2. Open CEF / in the HTML there is an iFrame which is an HTML which is also in the resources. There is an input in it ... works perfectly
  3. Open CEF / in the HTML there is a iFrame which loads an external website. There is a input in it (the same HTML as in point nr. 2 ... Cursor does not blink

Here is example no.3:

startscript.js let cef = new alt.WebView('http://resource/ui/index.html'); cef.focus();

ui/index.html <!DOCTYPE html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><iframe id="bodyFrame" style="width:100vw;height:100vh;" src="https://www.LinkToExternalWebsite.de/index.html"></iframe></body></html>

index.html (on Webserver) <!DOCTYPE html><html lang="de"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"></head><body><input type="text" name="test" value="" /></body></html>

gt4ever1988 avatar Sep 29 '21 17:09 gt4ever1988

Same Problem. No cursor. No Login on extern webviews / iFrame

Xantron avatar Oct 02 '21 02:10 Xantron

In the same situation (remote iframes) input focus and unfocus events do not work either.

seelrd avatar Oct 30 '21 12:10 seelrd

I can reproduce that behaviour too.

pixlcrashr avatar Oct 30 '21 12:10 pixlcrashr

#1193 (maybe) relate to the same root cause.

pixlcrashr avatar Oct 30 '21 13:10 pixlcrashr

Still a problem in release/8.8 https://img.revyn112.dev/data/LG95BRmJpx.mp4

Revyn112 avatar Jan 04 '22 19:01 Revyn112

The same will happen when the url will change through webview url parameter.

Revyn112 avatar Apr 29 '22 19:04 Revyn112

This still seems to be an issue. The cursor is not appearing in input fields and are not focused/blurred. I'm not using any iframes but one redirect to an external website. When I remove this redirect it works so changing the URL seems to break the cursor.

Hardy535 avatar Aug 07 '22 18:08 Hardy535

Fixed in dev/14.0-dev54.

FabianTerhorst avatar Feb 23 '23 00:02 FabianTerhorst